Documentation ¶
Index ¶
- Constants
- Variables
- func DumpYAMLNode(writer io.Writer, node *yaml.Node, indent int)
- func DumpYAMLNodes(writer io.Writer, node *yaml.Node)
- func Encode(value interface{}, format string, indent string, strict bool) (string, error)
- func EncodeCBOR(value interface{}) (string, error)
- func EncodeCompatibleJSON(value interface{}, indent string) (string, error)
- func EncodeCompatibleXML(value interface{}, indent string) (string, error)
- func EncodeJSON(value interface{}, indent string) (string, error)
- func EncodeYAML(value interface{}, indent string, strict bool) (string, error)
- func NewJSONFormatter() *prettyjson.Formatter
- func NewYAMLPrinter() yamlprinter.Printer
- func OpenFileForWrite(path string) (*os.File, error)
- func PrettifyYAML(code string, writer io.Writer) error
- func Print(value interface{}, format string, writer io.Writer, strict bool, pretty bool) error
- func PrintCBOR(value interface{}, writer io.Writer) error
- func PrintCompatibleJSON(value interface{}, writer io.Writer, pretty bool) error
- func PrintCompatibleXML(value interface{}, writer io.Writer, pretty bool) error
- func PrintJSON(value interface{}, writer io.Writer, pretty bool) error
- func PrintXMLDocument(xmlDocument *etree.Document, writer io.Writer, pretty bool) error
- func PrintYAML(value interface{}, writer io.Writer, strict bool, pretty bool) error
- func Validate(code string, format string) error
- func ValidateCBOR(code string) error
- func ValidateJSON(code string) error
- func ValidateXML(code string) error
- func ValidateYAML(code string) error
- func Write(value interface{}, format string, indent string, strict bool, writer io.Writer) error
- func WriteCBOR(value interface{}, writer io.Writer) error
- func WriteCompatibleJSON(value interface{}, writer io.Writer, indent string) error
- func WriteCompatibleXML(value interface{}, writer io.Writer, indent string) error
- func WriteJSON(value interface{}, writer io.Writer, indent string) error
- func WriteOrPrint(value interface{}, format string, writer io.Writer, strict bool, pretty bool, ...) error
- func WriteXMLDocument(xmlDocument *etree.Document, writer io.Writer, indent string) error
- func WriteYAML(value interface{}, writer io.Writer, indent string, strict bool) error
Constants ¶
View Source
const DIRECTORY_WRITE_PERMISSIONS = 0700
View Source
const FILE_WRITE_PERMISSIONS = 0600
Variables ¶
View Source
var YAMLNodeKinds = map[yaml.Kind]string{
yaml.DocumentNode: "Document",
yaml.SequenceNode: "Sequence",
yaml.MappingNode: "Mapping",
yaml.ScalarNode: "Scalar",
yaml.AliasNode: "Alias",
}
Functions ¶
func DumpYAMLNode ¶ added in v0.1.18
func DumpYAMLNodes ¶ added in v0.1.18
func EncodeCBOR ¶ added in v0.1.20
Encodes to Base64
func EncodeCompatibleJSON ¶ added in v0.1.15
func EncodeCompatibleXML ¶ added in v0.1.18
func EncodeJSON ¶
func NewJSONFormatter ¶ added in v0.1.27
func NewJSONFormatter() *prettyjson.Formatter
func NewYAMLPrinter ¶ added in v0.1.27
func NewYAMLPrinter() yamlprinter.Printer
func PrintCompatibleJSON ¶ added in v0.1.15
func PrintCompatibleXML ¶ added in v0.1.18
func PrintXMLDocument ¶
func ValidateCBOR ¶ added in v0.1.21
func ValidateJSON ¶
func ValidateXML ¶
func ValidateYAML ¶
func WriteCompatibleJSON ¶ added in v0.1.15
func WriteCompatibleXML ¶ added in v0.1.18
func WriteOrPrint ¶
func WriteXMLDocument ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.