Versions in this module Expand all Collapse all v0 v0.3.0 Nov 20, 2019 Changes in this version + func Disabled(msg pgs.Message) (disabled bool, err error) + func Has(msg proto.Message, fld string) bool + func Needs(m pgs.Message, wk WellKnown) bool + func RegisterFunctions(tpl *template.Template, params pgs.Parameters) + func Render(tpl *template.Template) func(ctx RuleContext) (string, error) + func RequiredOneOf(oo pgs.OneOf) (required bool, err error) + type Gogo struct + Nullable bool + StdDuration bool + StdTime bool + type RuleContext struct + AccessorOverride string + Field pgs.Field + Gogo Gogo + Index string + MessageRules *validate.MessageRules + OnKey bool + Rules proto.Message + Typ string + WrapperTyp string + func (ctx RuleContext) Elem(name, idx string) (out RuleContext, err error) + func (ctx RuleContext) Key(name, idx string) (out RuleContext, err error) + func (ctx RuleContext) Unwrap(name string) (out RuleContext, err error) + type WellKnown string + const Email + const Hostname + const UUID