num.go 226 B

12345678910111213
  1. package cc
  2. const numTpl = `
  3. {{ if .Rules.GetIgnoreEmpty }}
  4. if ({{ accessor . }} != 0) {
  5. {{ end }}
  6. {{ template "const" . }}
  7. {{ template "ltgt" . }}
  8. {{ template "in" . }}
  9. {{ if .Rules.GetIgnoreEmpty }}
  10. }
  11. {{ end }}
  12. `