Skip to content

tompston/go-codegen-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codegen Examples with Go text/template package

  • 01 generating templates with data
  • 02 creating variables inside templates
  • 03 passing down and using functions inside templates
  • 04 embedding the templates into the binary
# to build the binary run 
GOOS=linux go build -o main .

Releases

No releases published

Packages

No packages published