xmlstruct

package
Version: v0.0.0-...-97928f7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XMLEle

type XMLEle struct {
	Val reflect.Value
	// contains filtered or unexported fields
}

func (*XMLEle) GetAttrs

func (x *XMLEle) GetAttrs() []tree.Node

func (*XMLEle) GetChildren

func (x *XMLEle) GetChildren() []tree.Node

func (*XMLEle) GetNodeType

func (x *XMLEle) GetNodeType() tree.NodeType

func (*XMLEle) GetParent

func (x *XMLEle) GetParent() tree.Elem

func (*XMLEle) GetToken

func (x *XMLEle) GetToken() xml.Token

func (*XMLEle) Pos

func (x *XMLEle) Pos() int

func (*XMLEle) ResValue

func (x *XMLEle) ResValue() string

type XMLNode

type XMLNode struct {
	Val reflect.Value
	// contains filtered or unexported fields
}

func (*XMLNode) GetNodeType

func (x *XMLNode) GetNodeType() tree.NodeType

func (*XMLNode) GetParent

func (x *XMLNode) GetParent() tree.Elem

func (*XMLNode) GetToken

func (x *XMLNode) GetToken() xml.Token

func (*XMLNode) Pos

func (x *XMLNode) Pos() int

func (*XMLNode) ResValue

func (x *XMLNode) ResValue() string

type XMLRoot

type XMLRoot struct {
	Ele *XMLEle
}

func MustParseStruct

func MustParseStruct(i interface{}) *XMLRoot

func ParseStruct

func ParseStruct(i interface{}) (*XMLRoot, error)

func (*XMLRoot) GetAttrs

func (x *XMLRoot) GetAttrs() []tree.Node

func (*XMLRoot) GetChildren

func (x *XMLRoot) GetChildren() []tree.Node

func (*XMLRoot) GetNodeType

func (x *XMLRoot) GetNodeType() tree.NodeType

func (*XMLRoot) GetParent

func (x *XMLRoot) GetParent() tree.Elem

func (*XMLRoot) GetToken

func (x *XMLRoot) GetToken() xml.Token

func (*XMLRoot) Pos

func (x *XMLRoot) Pos() int

func (*XMLRoot) ResValue

func (x *XMLRoot) ResValue() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL