The Go Programming Language
Writing Web Applications - The Go Programming Language
Writing Web Applications - The Go Programming Language
The save method returns an error value because that is the return type of WriteFile (a standard library function that writes a byte slice to a file). The save method returns the error value, to let the application handle it should anything go wrong while writing the file.
golang.org



