nazajson

package
v0.17.1-0...-36a5d2c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

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

func New

func New(raw []byte) (JSON, error)

func (*JSON) Exist

func (j *JSON) Exist(path string) bool

判断 json 中某个字段是否存在 @param path 支持多级格式,用句号`.`分隔,比如 log.level

func (*JSON) Init

func (j *JSON) Init(raw []byte) error

Jump to

Keyboard shortcuts

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