jsonconfig

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config json配置器

func (*Config) GetConfig

func (config *Config) GetConfig(key string) (res utypes.Object)

GetConfig 读取key的value信息 返回ConfigBody对象, 里面的值可能是string或者map

func (*Config) Init

func (config *Config) Init(appName string) error

Init 初始化解析器

func (*Config) InitConfig

func (config *Config) InitConfig(configPath string) error

InitConfig 初始化解析器

func (*Config) SetConfig

func (config *Config) SetConfig(key string, value any) error

SetConfig 保存配置

Jump to

Keyboard shortcuts

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