setting

package
v0.0.0-...-63964f8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: GPL-3.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 Setting

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

func NewSetting

func NewSetting(configName, configType string, configPaths ...string) (*Setting, error)

NewSetting 初始化本项目的配置的基础属性 设定配置文件的名称为 config,配置类型为 yaml,并且设置其配置路径为相对路径 configs/

func (*Setting) BindAll

func (s *Setting) BindAll(v interface{}) error

BindAll 绑定配置文件

Jump to

Keyboard shortcuts

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