Versions in this module Expand all Collapse all v1 v1.0.0 Nov 20, 2026 Changes in this version + var ErrCompile = errors.New("mapperkit.compile") + var ErrDataBaseOnTextFormat = errors.New("mapperkit.data_base_on_text_format") + var ErrIfBlockNotAllowed = errors.New("mapperkit.if_block_not_allowed") + var ErrIfBlockSyntax = errors.New("mapperkit.if_block_syntax") + var ErrIndexBaseOnPathFormat = errors.New("mapperkit.index_base_on_path_format") + var ErrInvalidDataIndex = errors.New("mapperkit.invalid_data_index") + var ErrInvalidIfCondition = errors.New("mapperkit.invalid_if_condition") + var ErrInvalidMethodArg = errors.New("mapperkit.invalid_method_arg") + var ErrNotSingleRef = errors.New("mapperkit.not_single_ref") + var ErrParseDate = errors.New("mapperkit.parse_date") + var ErrPathBaseOnIndexFormat = errors.New("mapperkit.path_base_on_index_format") + var ErrResolve = errors.New("mapperkit.resolve") + var ErrTooManyMethods = errors.New("mapperkit.too_many_methods") + var ErrUnclosedIfBlock = errors.New("mapperkit.unclosed_if_block") + var ErrUnclosedPlaceholder = errors.New("mapperkit.unclosed_placeholder") + var ErrUnknownMethod = errors.New("mapperkit.unknown_method") + var ErrUnknownPlaceholder = errors.New("mapperkit.unknown_placeholder") + func Canonicalize(raw string) (canonical string, changed bool) + func NavigateXMLTree(tree any, path string) string + func ParseXMLTree(data []byte) (any, error) + func ResolveXMLPosition(tree any, rawXML []byte, position string) string + func ValidateRef(mode RefMode, format SourceFormat, s string) error + func Version() string + type CompiledString struct + func CompileString(template string) (*CompiledString, error) + func (t *CompiledString) Execute(ctx Context) (string, error) + type CompiledTemplate struct + func Compile(templateStr string) (*CompiledTemplate, error) + func (t *CompiledTemplate) Execute(ctx Context) ([]byte, error) + type Context struct + Cookies map[string]string + FlowId string + Headers map[string]string + QueryParams map[string]string + RawFields []string + RawJSON []byte + RawXML []byte + func (ctx Context) WithParsedXML() Context + type RefMode int + const ModeFullTemplate + const ModeSingleRef + const ModeStringTemplate + type SourceFormat string + const FormatJSON + const FormatTSV + const FormatText + const FormatUnknown + const FormatXML