Function in same package undefined

前端 未结 9 2033
太阳男子
太阳男子 2020-12-28 12:17

My project structure is like this.

packagetest/
    main.go
    lib.go

In main.go, I have this code.

package m         


        
9条回答
  •  一整个雨季
    2020-12-28 12:46

    Try running just go build. When you give it a go file as an argument, it will not look for other go files. You can also do go build *.go

提交回复
热议问题