I'm trying to build my plugin using --buildmode=plugin
flag. the size is about 12MB
and it's quite large.
I've tried -ldflags "-s -w"
flag which actually works for binary build, But not the plugin.
And the goupx
and upx
both only working for binary build.
Is there any way to reduce go plugin file size?