Documentation
¶
Overview ¶
Package template provides a set of templates for the main function, HTTP server, README, and Makefile.
Package template provides a set of templates for the main function, HTTP server, README, and Makefile.
Package template provides a set of templates for the main function, HTTP server, README, and Makefile.
Package template provides a set of templates for the main function, HTTP server, README, and Makefile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AirTomlTemplate ¶
func AirTomlTemplate() []byte
func GitIgnore ¶
func GitIgnore() []byte
MainTemplate returns a byte slice containing a Go source code template for the main function. The main function creates a new server and starts it.
func MainTemplate ¶
func MainTemplate() []byte
MainTemplate returns a byte slice containing a Go source code template for the main function. The main function creates a new server and starts it.
func MakeTemplate ¶
func MakeTemplate() []byte
MakeTemplate returns a byte slice containing a Makefile template for a Go project. The Makefile includes targets to build, run, test, and clean the project.
func ReadmeTemplate ¶
func ReadmeTemplate() []byte
Types ¶
This section is empty.