num.go 233 B

12345678910111213141516
  1. package goshared
  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. `