How to run all .go files within current directory through the command line (multi file package)

前端 未结 11 2583
滥情空心
滥情空心 2020-12-08 01:49

I\'m a newcomer to Go. I extremely like the language, but I quickly realised that I needed to start dividing my files due to an increase in program size.

go r

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 02:31

    Finally we can now use:

    go run .
    

    thanks to: https://github.com/golang/go/issues/22726#issuecomment-345841019

提交回复
热议问题