smfrpc / smf

Fastest RPC in the west

Home Page:http://smfrpc.github.io/smf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

possibly revert https://github.com/smfrpc/smf/pull/287

emaxerrno opened this issue · comments

we should keep compatibility w/ flatc generator.

what is the problem? ^^

I tested it with CMake

smfc_gen(
  GOLANG
  TARGET_NAME not_a_demo
  OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  SOURCES not_a_demo.fbs)

@crackcomm

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.