Comment

Comment by infogulch

Can gc load a cgo plugin [1]? If so, could you build therecipe/qt into a plugin and load it at runtime to avoid being forced to use cgo?

E.g. your project has `type Qt interface {`, and the plugin exports a global symbol that can be asserted to that interface to use the library.

[1]: https://golang.org/pkg/plugin/

parent infogulch 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton