Skip to content

Instantly share code, notes, and snippets.

@mvantellingen
Created April 5, 2019 12:22
Show Gist options
  • Save mvantellingen/55f8f7d3031512889105c0412c9d8f5a to your computer and use it in GitHub Desktop.
Save mvantellingen/55f8f7d3031512889105c0412c9d8f5a to your computer and use it in GitHub Desktop.
# type Product string
f := jen.NewFile("mypackage")
f.Type().Id("Product).String().Line()
f.Save("output.go")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment