qconfig

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get added in v0.0.9

func Get[T any](key string, defValue T) T

Get

@Description: 获取配置
@param key 节 格式:xxx.xxx.xxx
@return T

func Init added in v0.0.15

func Init(newProjectName string, newFileName string, configContents [][]byte)

Init

@Description: 初始化,原则上只在服务启动的时候执行一次
@param newProjectName 服务名称,默认为空
@param newFileName 配置文件路径,默认为./config.yaml
@param configContents 配置文件内容

Types

This section is empty.

Jump to

Keyboard shortcuts

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