possibly revert https://github.com/smfrpc/smf/pull/287
emaxerrno opened this issue · comments
Alexander Gallego commented
we should keep compatibility w/ flatc generator.
Łukasz Kurowski commented
what is the problem? ^^
Łukasz Kurowski commented
I tested it with CMake
smfc_gen(
GOLANG
TARGET_NAME not_a_demo
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
SOURCES not_a_demo.fbs)
Alexander Gallego commented
so flatc/smfc should be the consistent. Even if it means consistently incorrect.
flatc generates one subdirectory per sub import in go.
i..e:
package foo.bar.baz
will create a folder in foo/bar/baz.go
where baz.go will have package baz
at the top.
Same w/ smfc.