github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/examples/cgo/example_command/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/bazelbuild/rules_go/examples/cgo" 7 ) 8 9 func main() { 10 fmt.Println("floor(sqrt(10)) = ", cgo.Nsqrt(10)) 11 cgo.PrintGoVersion() 12 cgo.PrintCXXVersion() 13 }