config

package
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultXMLConfig = XMLReaderConfig{
	Depth:       opt.SetInt(1),
	AttrPrefix:  `-`,
	CastToFloat: opt.SetFlag(true),
	CastToBool:  opt.SetFlag(true),
}

DefaultXMLConfig ...

Functions

This section is empty.

Types

type XMLReaderConfig

type XMLReaderConfig struct {
	LowerCase               *opt.Flag
	Depth                   *opt.Int
	SnakeCaseKeys           *opt.Flag
	AttrPrefix              string
	HandleXMPPStreamTag     *opt.Flag
	IncludeTagSeqNum        *opt.Flag
	DecodeSimpleValuesAsMap *opt.Flag

	// Cast config
	CastNanInf     *opt.Flag
	CheckTagToSkip func(string) bool
	CastToInt      *opt.Flag
	CastToFloat    *opt.Flag
	CastToBool     *opt.Flag
}

XMLReaderConfig ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL