Re:5 Weeks of Go
by jbarham on Wednesday May 23, 2012 @09:40PM
(#4016323)
> Can I import Java libraries into Go?
No. Go compiles to machine code, not the JVM.
Go's built in cgo tool makes it very easy to wrap C code. See http://golang.org/doc/articles/c_go_cgo.html. Crucially, you can write most of the wrapper in pure Go and the C boilerplate code is generated automatically.
No. Go compiles to machine code, not the JVM.
Go's built in cgo tool makes it very easy to wrap C code. See http://golang.org/doc/articles/c_go_cgo.html. Crucially, you can write most of the wrapper in pure Go and the C boilerplate code is generated automatically.