Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool leafToken
func (*Bool) GenerateAST ¶
if {{.}} { err = w.WriteByte('1') } else {
err = w.WriteByte('0') }
if err { return }
type CodeToken ¶
func MergeConsts ¶
We can only merge consts in containers
type Const ¶
type Const leafToken
func (*Const) GenerateAST ¶
if err = w.WriteByte('{{.}}'); err != nil { return }
type Int ¶
type Int leafToken
func (*Int) GenerateAST ¶
if _, err = w.WriteString(strconv.FormatInt(int64({{.}}), 10)); err != nil { return }
type Map ¶
func (*Map) GenerateAST ¶
mapKeys = nil
for k, _ := range {{.Selector}} { mapKeys = append(mapKeys, {{ if (.Import) ne "" }}string(k){{ else }}k{{ end }}) }
sort.Sort(mapKeys) for _, idx := range mapKeys { {{- if (.Import) ne "" }}
k := {{ .Import }}.{{ .Type }}(idx)
{{- else }}
k := idx
{{- end }}
func (*Map) SetContents ¶
type Native ¶
type Native leafToken
func (*Native) GenerateAST ¶
if err = {{.}}.WriteTo(w); err != nil { return }
Click to show internal directories.
Click to hide internal directories.