Documentation
¶
Index ¶
- Constants
- func RegExpFromAttributeFormat(attributeFormat string) *regexp.Regexp
- func RegExpsFromAttributeFormat(attributeFormat string) (*regexp.Regexp, *regexp.Regexp)
- func WithFuncPrefix(fn func(string) string) func(setter *Setter)
- func WithOutputFormat(fmt outputFormat) func(output *Outputter)
- func WithStringPrefix(prefix string) func(setter *Setter)
- type Mutator
- type OutputOpt
- type Outputter
- type Parser
- type PathValue
- type PathValueList
- type Sanitizer
- type Setter
- type SetterOpt
Constants ¶
View Source
const ( YAML outputFormat = iota JSON )
View Source
const (
DefAttributeNameFormat = `("[A-Za-z_]+[A-Za-z0-9_./-]*"|[A-Za-z_]+[A-Za-z0-9_/-]*)`
)
Variables ¶
This section is empty.
Functions ¶
func RegExpsFromAttributeFormat ¶ added in v0.0.5
func WithFuncPrefix ¶ added in v0.0.7
func WithOutputFormat ¶
func WithOutputFormat(fmt outputFormat) func(output *Outputter)
func WithStringPrefix ¶ added in v0.0.7
Types ¶
type PathValueList ¶
type PathValueList []PathValue
type Sanitizer ¶
type Sanitizer struct {
Strict bool
}
func (*Sanitizer) SanitizePathValueList ¶
func (s *Sanitizer) SanitizePathValueList(args ...any) PathValueList
Click to show internal directories.
Click to hide internal directories.