transcribe

package
v0.1.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func DumpYAMLNode(writer io.Writer, node *yaml.Node, indent int)

func DumpYAMLNodes

func DumpYAMLNodes(writer io.Writer, node *yaml.Node)

func Encode

func Encode(value any, format string, indent string, strict bool) (string, error)

func EncodeCBOR

func EncodeCBOR(value any) (string, error)

Encodes to Base64

func EncodeCompatibleJSON

func EncodeCompatibleJSON(value any, indent string) (string, error)

func EncodeCompatibleXML

func EncodeCompatibleXML(value any, indent string) (string, error)

func EncodeGo

func EncodeGo(value any, indent string) (string, error)

func EncodeJSON

func EncodeJSON(value any, indent string) (string, error)

func EncodeYAML

func EncodeYAML(value any, indent string, strict bool) (string, error)

func NewJSONFormatter

func NewJSONFormatter() *prettyjson.Formatter

func NewUtterConfig

func NewUtterConfig(indent string) *utter.ConfigState

func NewYAMLPrinter

func NewYAMLPrinter() yamlprinter.Printer

func OpenFileForWrite

func OpenFileForWrite(path string) (*os.File, error)

func PrettifyYAML

func PrettifyYAML(code string, writer io.Writer) error

func Print

func Print(value any, format string, writer io.Writer, strict bool, pretty bool) error

func PrintCBOR

func PrintCBOR(value any, writer io.Writer) error

func PrintCompatibleJSON

func PrintCompatibleJSON(value any, writer io.Writer, pretty bool) error

func PrintCompatibleXML

func PrintCompatibleXML(value any, writer io.Writer, pretty bool) error

func PrintGo

func PrintGo(value any, writer io.Writer, pretty bool) error

func PrintJSON

func PrintJSON(value any, writer io.Writer, pretty bool) error

func PrintXMLDocument

func PrintXMLDocument(xmlDocument *etree.Document, writer io.Writer, pretty bool) error

func PrintYAML

func PrintYAML(value any, writer io.Writer, strict bool, pretty bool) error

func Validate

func Validate(code string, format string) error

func ValidateCBOR

func ValidateCBOR(code string) error

func ValidateJSON

func ValidateJSON(code string) error

func ValidateXML

func ValidateXML(code string) error

func ValidateYAML

func ValidateYAML(code string) error

func Write

func Write(value any, format string, indent string, strict bool, writer io.Writer) error

func WriteCBOR

func WriteCBOR(value any, writer io.Writer) error

func WriteCompatibleJSON

func WriteCompatibleJSON(value any, writer io.Writer, indent string) error

func WriteCompatibleXML

func WriteCompatibleXML(value any, writer io.Writer, indent string) error

func WriteGo

func WriteGo(value any, writer io.Writer, indent string) error

func WriteJSON

func WriteJSON(value any, writer io.Writer, indent string) error

func WriteOrPrint

func WriteOrPrint(value any, format string, writer io.Writer, strict bool, pretty bool, output string) error

func WriteXMLDocument

func WriteXMLDocument(xmlDocument *etree.Document, writer io.Writer, indent string) error

func WriteYAML

func WriteYAML(value any, writer io.Writer, indent string, strict bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL