yaml

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Vp *viper.Viper
}

Parser yaml 转换器

func NewParser

func NewParser() *Parser

func (*Parser) GetParserType

func (this *Parser) GetParserType() string

func (*Parser) Parse

func (this *Parser) Parse(configContent interface{}) (map[string]interface{}, error)

Parse 内存内容 => yaml 数据格式转换器

func (*Parser) Unmarshal

func (this *Parser) Unmarshal(data []byte, val interface{}) error

Jump to

Keyboard shortcuts

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