// hello.go
package main
import "bitbucket.org/bigwhite/c"
func main() {
c.CallC()
}
// go.mod
module hello
$ go build hello.go
go: finding bitbucket.org/bigwhite/c v1.3.0
go: downloading bitbucket.org/bigwhite/c v1.3.0
go: extracting bitbucket.org/bigwhite/c v1.3.0
go: finding bitbucket.org/bigwhite/d v1.2.0
go: downloading bitbucket.org/bigwhite/d v1.2.0
go: extracting bitbucket.org/bigwhite/d v1.2.0
$ ./hello.exe
call C: v1.3.0
--> call D:
call D: v1.2.0
--> call D end
$ cat go.mod
// go.mod
module hello
go 1.12
require bitbucket.org/bigwhite/c v1.3.0 // indirect
$ pwd
/e/Coding/Golang/go/pkg/mod/cache/download
$ ls
bitbucket.org/ github.com/ golang.org/ gopkg.in/ sigs.k8s.io/
cloud.google.com/ go.uber.org/ google.golang.org/ k8s.io/
$ ./hello.exe
call C: v1.3.0
--> call D:
call D: v1.2.0
--> call D end
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有