wework

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrInvalidDocument invalid document err
	ErrInvalidDocument = errors.New("invalid document")

	//ErrInvalidRoot data at the root level is invalid err
	ErrInvalidRoot = errors.New("data at the root level is invalid")
)

Functions

func Decrypt

func Decrypt(encodingAESKey string, msgEncrypt string, parse bool) (map[string]interface{}, error)

Decrypt wework msg Decrypt

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder instance

func NewDecoder

func NewDecoder(reader io.Reader) *Decoder

NewDecoder create new decoder instance

func NewDecoderWithPrefix

func NewDecoderWithPrefix(reader io.Reader, attrPrefix, textPrefix string) *Decoder

NewDecoderWithPrefix create new decoder instance with custom attribute prefix and text prefix

func (*Decoder) Decode

func (d *Decoder) Decode() (map[string]interface{}, error)

Decode xml string to map[string]interface{}

Jump to

Keyboard shortcuts

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