config

package
v0.0.0-...-51fbea3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const OfficialPath = "/etc/11090815/mayy"

Variables

This section is empty.

Functions

func AddConfigPath

func AddConfigPath(v *viper.Viper, path string)

func GetConfig

func GetConfig() *viper.Viper

func GetPath

func GetPath(key string) string

func InitViper

func InitViper(v *viper.Viper, configName string) error

func TranslatePath

func TranslatePath(base, path string) string

TranslatePath 判断给定的路径(第二个参数)是否是绝对路径,若是,直接返回此路径,否则返回 base/path。

func TranslatePathInPlace

func TranslatePathInPlace(base string, path *string)

TranslatePathInPlace 判断给定的路径(第二个参数)是否是绝对路径,若是,不做任何处理,否则 让第二个参数 path = base/path。

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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