如何在golang使用自定义的包

2025-03-28 06:43:36
推荐回答(1个)
回答(1):

import (
    "mytest"
)

func main(){
    mytest.xx()
}

这样直接import就可以了,路径是从GOPATH开始