cftool

package
v1.0.1-rc Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IniEdit

type IniEdit struct {
	*ini.File
}

func NewIniEdit

func NewIniEdit(data []byte) (*IniEdit, error)

func (IniEdit) GetValue

func (j IniEdit) GetValue(path []string) string

GetValue 从json内容中读取一个key值

func (IniEdit) SetValue

func (j IniEdit) SetValue(path []string, d interface{}) string

SetValue 设置json内中指定json中的值

func (IniEdit) String

func (j IniEdit) String() string

type JsonEdit

type JsonEdit map[string]interface{}

func NewJsonEdit

func NewJsonEdit(data []byte) (JsonEdit, error)

func (*JsonEdit) GetValue

func (j *JsonEdit) GetValue(path []string) interface{}

GetValue 从json内容中读取一个key值

func (*JsonEdit) SetValue

func (j *JsonEdit) SetValue(path []string, d interface{}) string

SetValue 设置json内中指定json中的值

func (JsonEdit) String

func (j JsonEdit) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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