add code about functions in Go