知道如何在Go-GTK中使用GTK-Parasite吗?

问题描述:

I always use parasite when developing C GTK or Vala GTK apps. Usage is really straight forward (at least with Vala and C):

$ GTK_MODULES=gtkparasite app-binary

But I couldn't find a way to work it out with Go-GTK bindings. Any ideas?

我总是使用寄生虫。 用法非常简单(至少与Vala和C结合使用): p>

  $ GTK_MODULES = gtkparasite app-binary 
  code>  pre> 
 
 但是我找不到一种使用 Go-GTK 绑定的方法。 有什么想法吗? p> 
  div>

Ok, it didn't worked with https://github.com/mattn/go-gtk package, but turns out it worked as expected with https://github.com/conformal/gotk3:

$ go get -tags gtk_3_10 github.com/conformal/gotk3/gtk

So my advice is, for now, to switch to https://github.com/conformal/gotk3 and skip the others GTK biding packages for Go if you want to use Parasite.