config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployEnv

func DeployEnv(osArgs []string, factories ...Factory) (env string)

Types

type Config

type Config = viper.Viper

func Conf

func Conf() *Config

type Factory

type Factory func()

func File

func File(options ...Option) Factory

File 构造函数

func Remote

func Remote(opts ...Option) Factory

type Option

type Option func(*viper.Viper)

Option 配置项方法

func Name

func Name(name string) Option

Name 文件名配置

func Path

func Path(path string) Option

Path 路径配置

func Provider

func Provider(provider string, endpoint string, keyOrPath string) Option

func Type

func Type(_type string) Option

Type 文件类型配置

Jump to

Keyboard shortcuts

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