config

package
v0.0.0-...-205ef5e Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config 表示 logs 包的配置文件处理。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Parent *Config
	Name   string             // writer 的名称,一般为节点名
	Attrs  map[string]string  // 参数列表
	Items  map[string]*Config // 若是容器,则还有子项
}

Config 用于表示配置文件中的数据。

func ParseXMLFile

func ParseXMLFile(path string) (*Config, error)

ParseXMLFile 从一个 XML 文件初始化 Config 实例。

func ParseXMLString

func ParseXMLString(xml string) (*Config, error)

ParseXMLString 从一个 XML 字符串初始化 Config 实例。

Jump to

Keyboard shortcuts

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