v2

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](key string) T

Get

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

func Init

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