mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
30 lines
633 B
Go
30 lines
633 B
Go
|
package yqlib
|
||
|
|
||
|
type XmlPreferences struct {
|
||
|
AttributePrefix string
|
||
|
ContentName string
|
||
|
StrictMode bool
|
||
|
KeepNamespace bool
|
||
|
UseRawToken bool
|
||
|
ProcInstPrefix string
|
||
|
DirectiveName string
|
||
|
SkipProcInst bool
|
||
|
SkipDirectives bool
|
||
|
}
|
||
|
|
||
|
func NewDefaultXmlPreferences() XmlPreferences {
|
||
|
return XmlPreferences{
|
||
|
AttributePrefix: "+",
|
||
|
ContentName: "+content",
|
||
|
StrictMode: false,
|
||
|
KeepNamespace: true,
|
||
|
UseRawToken: false,
|
||
|
ProcInstPrefix: "+p_",
|
||
|
DirectiveName: "+directive",
|
||
|
SkipProcInst: false,
|
||
|
SkipDirectives: false,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var ConfiguredXMLPreferences = NewDefaultXmlPreferences()
|