Documentation
¶
Index ¶
- Constants
- Variables
- func Decode(code string, format string, all bool) (ard.Value, error)
- func DecodeAllYAML(code string) (ard.List, error)
- func DecodeCompatibleJSON(code string) (ard.Value, error)
- func DecodeCompatibleXML(code string) (ard.Value, error)
- func DecodeJSON(code string) (ard.Value, error)
- func DecodeYAML(code string) (ard.Value, error)
- func DecodeYAMLTemplate(code string, data interface{}) (interface{}, error)
- func DumpYAMLNode(writer io.Writer, node *yaml.Node, indent int)
- func DumpYAMLNodes(writer io.Writer, node *yaml.Node)
- func Encode(data interface{}, format string, strict bool) (string, error)
- func EncodeCompatibleJSON(data interface{}, indent string) (string, error)
- func EncodeCompatibleXML(data interface{}, indent string) (string, error)
- func EncodeJSON(data interface{}, indent string) (string, error)
- func EncodeYAML(data interface{}, indent string, strict bool) (string, error)
- func Normalize(data interface{}) (interface{}, error)
- func OpenFileForWrite(path string) (*os.File, error)
- func Print(data interface{}, format string, writer io.Writer, strict bool, pretty bool) error
- func PrintCompatibleJSON(data interface{}, writer io.Writer, pretty bool) error
- func PrintCompatibleXML(data interface{}, writer io.Writer, pretty bool) error
- func PrintJSON(data interface{}, writer io.Writer, pretty bool) error
- func PrintXMLDocument(xmlDocument *etree.Document, writer io.Writer, pretty bool) error
- func PrintYAML(data interface{}, writer io.Writer, strict bool, pretty bool) error
- func Read(reader io.Reader, format string) (ard.Value, error)
- func ReadAllYAML(reader io.Reader) (ard.List, error)
- func ReadCompatibleJSON(reader io.Reader) (ard.Value, error)
- func ReadCompatibleXML(reader io.Reader) (ard.Value, error)
- func ReadJSON(reader io.Reader) (ard.Value, error)
- func ReadYAML(reader io.Reader) (ard.Value, error)
- func ToCompatibleJSON(value ard.Value) ard.Value
- func Validate(code string, format string) error
- func ValidateJSON(code string) error
- func ValidateXML(code string) error
- func ValidateYAML(code string) error
- func Write(data interface{}, format string, indent string, strict bool, writer io.Writer) error
- func WriteCompatibleJSON(data interface{}, writer io.Writer, indent string) error
- func WriteCompatibleXML(data interface{}, writer io.Writer, indent string) error
- func WriteJSON(data interface{}, writer io.Writer, indent string) error
- func WriteOrPrint(data interface{}, format string, writer io.Writer, strict bool, pretty bool, ...) error
- func WriteXMLDocument(xmlDocument *etree.Document, writer io.Writer, indent string) error
- func WriteYAML(data 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 DecodeCompatibleJSON ¶ added in v0.1.15
func DecodeCompatibleXML ¶ added in v0.1.18
func DecodeYAMLTemplate ¶
func DumpYAMLNode ¶ added in v0.1.18
func EncodeCompatibleJSON ¶ added in v0.1.15
func EncodeCompatibleXML ¶ added in v0.1.18
func EncodeJSON ¶
func PrintCompatibleJSON ¶ added in v0.1.15
func PrintCompatibleXML ¶ added in v0.1.18
func PrintXMLDocument ¶
func ReadCompatibleJSON ¶ added in v0.1.15
func ReadCompatibleXML ¶ added in v0.1.18
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.