// 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