Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 375 Bytes

File metadata and controls

21 lines (15 loc) · 375 Bytes

Example of go:generate

The program is an example of output and render file with json and template by go generate command.

Run by go generate

make generate

Run by go run

make run

Build

make build

Files to use for render

Template file

example/functions.go.tpl

Json file

example/functions.json

Rendered file

example/generated.go