1[short] skip 2[!cgo] skip '-buildmode=c-shared requires external linking' 3[!buildmode:c-shared] stop 4 5env GO111MODULE=on 6 7go get rsc.io/fortune 8go build -buildmode=c-shared -o external.so rsc.io/fortune 9go version external.so 10stdout '^external.so: .+' 11go version -m external.so 12stdout '^\tpath\trsc.io/fortune' 13stdout '^\tmod\trsc.io/fortune\tv1.0.0' 14 15-- go.mod -- 16module m 17 18-- empty.go -- 19package main 20func main(){}