Versions in this module Expand all Collapse all v0 v0.0.1 Mar 10, 2023 Changes in this version + const DefaultTimeout + func Register(key string, parser Parser) + type Context struct + func NewContext(opt Options) *Context + func (c *Context) BaseURL() string + func (c *Context) Cancel() + func (c *Context) ClearValue() + func (c *Context) Deadline() (time.Time, bool) + func (c *Context) Done() <-chan struct{} + func (c *Context) Err() error + func (c *Context) GetValue(key any) (any, bool) + func (c *Context) Logger() *slog.Logger + func (c *Context) SetValue(key any, value any) + func (c *Context) URL() string + func (c *Context) Value(key any) any + type Options struct + Logger *slog.Logger + Parent context.Context + Timeout time.Duration + URL string + type Parser interface + GetElement func(*Context, any, string) (string, error) + GetElements func(*Context, any, string) ([]string, error) + GetString func(*Context, any, string) (string, error) + GetStrings func(*Context, any, string) ([]string, error) + func GetParser(key string) (Parser, bool)