Right now, you cannot write libraries in Go that can be used in other languages. Go has a runtime that does a lot of things (like process scheduling, garbage collection) for you. This runtime is written under the assumption that it controls the entire program. This assumption is not fulfilled if the Go code will be used from another language, since the Go library cannot influence the binary file that uses it.
source
share