Skip to content

Instantly share code, notes, and snippets.

@simt2
Created February 21, 2017 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simt2/8f3f59609f8b2d785ee5892143d54415 to your computer and use it in GitHub Desktop.
Save simt2/8f3f59609f8b2d785ee5892143d54415 to your computer and use it in GitHub Desktop.
mesh-go-example templateData
// templateData is the struct that we pass to our HTML templates, containing
// necessary data to render pages
type templateData struct {
Breadcrumb []gjson.Result
Category *gjson.Result
Products *[]gjson.Result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment