Was looking through the issues tracker and saw someone having issues with trying to use buildmode=c-shared and I noticed he linked a package main with only a main function as the thing he is trying to build.
So for lulz I tried building it with buildmode=c-shared followed by buildmode=shared and apparently it didn't complain about anything and generated a binary. -- 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. For more options, visit https://groups.google.com/d/optout.