Files
cloudflared/vendor/zombiezen.com/go/capnproto2/capnpc-go/templates/constants
2018-07-19 15:02:24 -05:00

15 lines
300 B
Plaintext

{{with .Consts -}}
// Constants defined in {{$.G.Basename}}.
const (
{{range .}} {{.Name}} = {{$.G.Value . .Const.Type .Const.Value}}
{{end}}
)
{{end}}
{{with .Vars -}}
// Constants defined in {{$.G.Basename}}.
var (
{{range .}} {{.Name}} = {{$.G.Value . .Const.Type .Const.Value}}
{{end}}
)
{{end}}