config

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 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
}

func Json added in v0.3.10

func Json(data []byte) (*Config, error)

func Toml added in v0.3.10

func Toml(data []byte) (*Config, error)

func (*Config) Load added in v0.4.3

func (c *Config) Load(field string, f any) error

Load 加载一段配置

type Loader added in v0.3.10

type Loader func(data []byte) (*Config, error)

type Parser added in v0.4.3

type Parser interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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