Home | History | Annotate | Download | only in template

Lines Matching defs:option

20 type option struct {
24 // Option sets options for the template. Options are described by
26 // most one equals sign in an option string. If the option string
27 // is unrecognized or otherwise invalid, Option panics.
42 func (t *Template) Option(opt ...string) *Template {
52 panic("empty option string")
62 t.option.missingKey = mapInvalid
65 t.option.missingKey = mapZeroValue
68 t.option.missingKey = mapError
73 panic("unrecognized option: " + opt)