cmdenv

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string, def ...interface{}) *gvar.Var

获取指定名称的命令行参数,当不存在时获取环境变量参数,皆不存在时,返回给定的默认值。 规则: 1、命令行参数以小写字母格式,使用: gf.包名.变量名 传递; 2、环境变量参数以大写字母格式,使用: GF_包名_变量名 传递;

Types

This section is empty.

Jump to

Keyboard shortcuts

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