nazajson

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 2 Imported by: 1

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 中某个字段是否存在 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