要运行和构建一些goproject并为节俭文件生成代码,我只是从命令行使用make fmt
。
例如,一个过时的文件可能位于文件夹root/thriftstuff/a/b/my_service.thrift
my_service.thrift
:
name someNamespace
service MyService{
string hello()
}
我回到root
,我运行make fmt
,没有任何Makefile或任何东西,它在root/.gen/go/my_service/myservice.go
中为我生成了节俭代码。我想知道发生了什么,幕后发生了什么?好像是黑匣子