I wonder whether I can use it to create a Go library that I can import in Python?
There might be a way, too.
`-buildmode=c-shared` is what produces a shared library with a C ABI exposed; https://golang.org/s/execmodes was the design document for it, which explains:
> It follows that all Go code shares a single runtime. All Go code uses the same memory allocator, the same goroutine scheduler, and in general acts as though it were linked into a single Go program. This is true even when multiple shared libraries are involved.
https://medium.com/analytics-vidhya/running-go-code-from-pyt...