gxml

package
v1.8.4-0...-cbac34e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gxml provides accessing and converting for XML content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(content []byte) (map[string]interface{}, error)

将XML内容解析为map变量

func Encode

func Encode(v map[string]interface{}, rootTag ...string) ([]byte, error)

将map变量解析为XML格式内容

func EncodeWithIndent

func EncodeWithIndent(v map[string]interface{}, rootTag ...string) ([]byte, error)

func ToJson

func ToJson(content []byte) ([]byte, error)

XML格式内容直接转换为JSON格式内容

Types

This section is empty.

Jump to

Keyboard shortcuts

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