News for hackers. Stuff that matters.
Re:5 Weeks of Go by ssmoot on Wednesday May 23, 2012 @06:05PM (#4015567)
This is a stupid question, but it's beyond difficult to search for an answer (I've really tried!):

Can I import Java libraries into Go? If I can't find a Go library to do what I need, what are my options besides messaging to another process, or (presumably) finding a equivalent C library (I don't trust my C skills enough to make wrapping something a confidence inspiring no-brainer).

Is there general language/library interop details out there any golangers could point me towards?

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.

Re:5 Weeks of Go by koenigdavidmj on Wednesday May 23, 2012 @08:58PM (#4016180)
Swig (http://www.swig.org/) can take C++ libraries and let them be accessed from Go.