Versions in this module Expand all Collapse all v3 v3.0.1 Jun 26, 2023 v3.0.0 Jun 26, 2023 Changes in this version + const DefaultInitFunc + func DefaultSymbols() map[string]map[string]reflect.Value + func DefaultTags() []string + type EmittedTemplate struct + Buf bytes.Buffer + Err []error + Template []xo.Template + type ErrPostFailed struct + Err error + File string + func (err *ErrPostFailed) Error() string + func (err *ErrPostFailed) Unwrap() error + type Set struct + func NewDefaultTemplateSet(ctx context.Context) *Set + func NewTemplateSet(symbols map[string]map[string]reflect.Value, initfunc string, tags ...string) *Set + func (set *Set) Errors() []error + func (ts *Set) Add(ctx context.Context, name string, src fs.FS, unrestricted bool) (string, error) + func (ts *Set) AddTemplates(ctx context.Context, src fs.FS, unrestricted bool) error + func (ts *Set) Dump(out string) + func (ts *Set) Flags(name string) []xo.FlagSet + func (ts *Set) For(mode string) error + func (ts *Set) Has(name string) bool + func (ts *Set) LoadDefault(ctx context.Context, name string) error + func (ts *Set) LoadDefaults(ctx context.Context) error + func (ts *Set) NewContext(ctx context.Context, mode string) context.Context + func (ts *Set) NewTemplate(ctx context.Context, target string, src fs.FS, unrestricted bool) (*Target, error) + func (ts *Set) Post(ctx context.Context, mode string) + func (ts *Set) Pre(ctx context.Context, outDir string, mode string, set *xo.Set) + func (ts *Set) Process(ctx context.Context, outDir string, mode string, set *xo.Set) + func (ts *Set) Src() (fs.FS, error) + func (ts *Set) Target() string + func (ts *Set) Targets() []string + func (ts *Set) Use(name string) + type Target struct + Interp *interp.Interpreter + Name string + Src fs.FS + Type xo.TemplateType + func (target *Target) Flags() []xo.FlagSet Other modules containing this package github.com/danicc097/xo github.com/danicc097/xo/v5