Documentation
¶
Index ¶
- Variables
- func CopyFile(dest string, src string) error
- func JSONPointer2JSONPath(jsonPointer string) (jsonPath string, err error)
- func MustReadFileBytes(path string) []byte
- func ParseYAMLFile(filePath string) (*yaml.Node, error)
- func ResolveYAMLRef(node *yaml.Node, nodePath string) (*yaml.Node, error)
- func ResolveYAMLRefs(node *yaml.Node, nodePath string) (*yaml.Node, error)
- func SplitJSONRef(refStr string) (location string, jsonPath string, err error)
- func Struct2XMLDocText(p any) ([]byte, error)
- func Text2XML(reader io.Reader) (*etree.Document, error)
- func Text2YAML(reader io.Reader) (*yaml.Node, error)
- func XML2Text(doc *etree.Document) ([]byte, error)
- func XML2YAML(doc *etree.Document) (*yaml.Node, error)
- func XML2YAMLRecursive(ele *etree.Element) (key *yaml.Node, value *yaml.Node, err error)
- func XML2YAMLText(doc *etree.Document, indent int) ([]byte, error)
- func XMLText2XML(reader io.Reader) (*etree.Document, error)
- func XMLText2YAML(reader io.Reader) (*yaml.Node, error)
- func XMLText2YAMLText(reader io.Reader) ([]byte, error)
- func XMLTextFormat(reader io.Reader) ([]byte, error)
- func YAML2Text(node *yaml.Node, indent int) ([]byte, error)
- func YAML2XML(node *yaml.Node) (*etree.Document, error)
- func YAML2XMLRecursive(node *yaml.Node, parent *etree.Element) (*etree.Element, error)
- func YAML2XMLText(node *yaml.Node) ([]byte, error)
- func YAMLDoc2File(docNode *yaml.Node, outputFile string) error
- func YAMLText2XML(reader io.Reader) (*etree.Document, error)
- func YAMLText2XMLText(reader io.Reader) ([]byte, error)
- type StdoutCapture
Constants ¶
This section is empty.
Variables ¶
View Source
var ParsedYAMLFiles map[string]*yaml.Node
Functions ¶
func JSONPointer2JSONPath ¶ added in v0.1.2
func MustReadFileBytes ¶ added in v0.1.2
func ParseYAMLFile ¶
func ResolveYAMLRef ¶
func ResolveYAMLRefs ¶
func SplitJSONRef ¶ added in v0.1.2
func Struct2XMLDocText ¶
func XML2YAMLRecursive ¶
func XMLText2YAML ¶
func YAML2XMLRecursive ¶
func YAML2XMLText ¶
func YAMLDoc2File ¶ added in v0.1.5
Types ¶
type StdoutCapture ¶ added in v0.1.5
type StdoutCapture struct {
// contains filtered or unexported fields
}
func NewStdoutCapture ¶ added in v0.1.5
func NewStdoutCapture() (*StdoutCapture, error)
func (*StdoutCapture) Read ¶ added in v0.1.5
func (sf *StdoutCapture) Read() ([]byte, error)
func (*StdoutCapture) Restore ¶ added in v0.1.5
func (sf *StdoutCapture) Restore()
Click to show internal directories.
Click to hide internal directories.