const.go 189 B

123456789
  1. package cc
  2. const constTpl = `{{ $r := .Rules }}
  3. {{ if $r.Const }}
  4. if ({{ accessor . }} != {{ lit $r.GetConst }}) {
  5. {{ err . "value must equal " (lit $r.GetConst) }}
  6. }
  7. {{ end }}
  8. `