xml

package
v0.0.0-...-55524bd Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ValueNumber ValueNumber
	ValueNumber = "number"
	// ValueString ValueString
	ValueString = "string"
	// ValueBool ValueBool
	ValueBool = "boolean"
	// ValueMap ValueMap
	ValueMap = "map"
	// ValueArray ValueArray
	ValueArray = "array"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct{}

Decoder implements xml decoder

func (*Decoder) Decode

func (dec *Decoder) Decode(data []byte) (interface{}, error)

Decode unmarshal xml to universal Go data

type Encoder

type Encoder struct{}

Encoder implements a xml encoder

func (*Encoder) Encode

func (e *Encoder) Encode(v interface{}, buf []byte, pretty bool) ([]byte, error)

Encode marshal a Go data into []byte, it use buf firstly.

Jump to

Keyboard shortcuts

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