Pre-Compiling Go Functions

I am unable to find ANY information about pre-compiling a Go function for Netlify functions. The documentation on building serverless functions with Go says we can precompile them ourselves, however anything I’ve tried results in the precompiled function being mistaken as JS.

This is causing serious problems with our deploy times. Any advice is appreciated.

Have you set the GO_IMPORT_PATH in environment variables?

1 Like