4 ms·You can definitely use CGO and still build statically, but you do need to set ldflags to include -static.by swills 10mo agoYou can definitely use CGO and still build statically, but you do need to set ldflags to include -static.tptacek 10mo agoYou can even cross-compile doing that.swills 10mo agoYes, indeed, I do.