global

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CFG 全局配置(需要先执行MustLoad,否则拿不到配置)
	CFG = new(config.Config)

	RdsCli redis.Cmdable
)

Functions

func MustLoad

func MustLoad(fpaths ...string)

MustLoad 加载配置

func PrintWithJSON

func PrintWithJSON()

PrintWithJSON 基于JSON格式输出配置

Types

This section is empty.

Jump to

Keyboard shortcuts

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