Deploy hugo on netlify with functions

I am a bit confused how would you deploy on netlify with serverless function with Go.
Deploying only hugo is fine, but if I want to add some serverless function even hello world from I getting no good.

I made a directory in hugo called functions added there hello.go as per example, and pushed it. But I guess I have to do something with config in netlify.toml but tried this and that and either build fails, or there just no functions.

I guess I have issue with my netlify.toml configuration because I am not sure what build command should be to build hugo and function.
The log for functions looks like this

8:11:41 AM: Function Dir: /opt/build/repo/functions
8:11:41 AM: TempDir: /tmp/zisi-5e37ab6c48554e00074e5906
8:11:41 AM: Prepping functions with zip-it-and-ship-it 0.3.1
8:11:42 AM:
8:11:42 AM: Prepping functions complete

The instance is trusting-shockley-4abebc

I figured out that I can(or must) compile the Go and I did and it working now. However I am interested if I can bring source files and make netlify compile it.

hi there, I don’t have a specific answer for you quite just yet, but I am wondering if you saw the functions playground?

You can find a bunch of examples for things.

If you search the forum:

you’ll see that there are quite a few discussions that might provide some useful information for you :muscle: