xxml

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package xxml 提供与 xml 相关的功能

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map2XMLObj

func Map2XMLObj(maps map[string]string, v interface{}) error

Map2XMLObj 将 map 转换到 v

func MapFromXMLReader

func MapFromXMLReader(r io.Reader) (map[string]string, error)

MapFromXMLReader 从 io.Reader 读取内容,并填充到 map 中

Types

type CData

type CData struct {
	Text string `xml:",cdata"`
}

CData 表示 xml 中的 CDATA 的内容,本身并不能直接以字段的形式 出现在结构体中,只能以一个结构包含住。

具体的使用方式可参考测试代码

Jump to

Keyboard shortcuts

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