Could you explain in more detail why you want to always run with cgocheck=0. That seems ill advised at first glance. I'm not sure what that has to do with "I want to disable some controls."
On Wednesday, December 16, 2020 at 11:50:04 AM UTC-5 Sean wrote: > hi all, > i have a project I have to work with CGo. I want to disable some > controls as they are not good enough right now. > It works when I write "set godebug=cgocheck=0" on Windows in console. > However, this is a GUI program. Console should not open. > > I tried this with "os.Setenv". I define it in "func init" it doesn't work. > > Something like this: > > func init() { > os.Setenv("godebug", "cgocheck=0") > } > > What should I do? > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ecedb572-3a3a-4f4f-9b0f-703722922c87n%40googlegroups.com.