util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChildren

func AddChildren(root *etree.Element, n *etree.Element)

AddChildren adds the children of a node to another.

func ChildrenToString

func ChildrenToString(root *etree.Element, indent int) (string, error)

ChildrenToString formats the root node tree as a DataXML string.

func Dump

func Dump(i interface{})

Dump prints stuff as a serialized (json) string.

func PrintlnChildren

func PrintlnChildren(root *etree.Element)

PrintlnChildren prints the child elements of a node.

func ReaderToString

func ReaderToString(r io.Reader) (string, error)

ReaderToString returns a string from an io.Reader.

func RemoveChildren

func RemoveChildren(root *etree.Element)

RemoveChildren removes child elements of a node.

func ReplaceChildren

func ReplaceChildren(root *etree.Element, n *etree.Element)

ReplaceChildren replaces the children of a node with the children of another.

func Uints32ToBytes

func Uints32ToBytes(u []uint32) []byte

Uints32ToBytes converts []uint32 to []byte.

Types

This section is empty.

Jump to

Keyboard shortcuts

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