Lines Matching +refs:Set +refs:Env
16 type Env []string type
19 func (env *Env) Get(key string) (value string) {
25 func (env *Env) Exists(key string) bool {
33 func (env *Env) GetBool(key string) (value bool) {
42 func (env *Env) SetBool(key string, value bool) {
44 env.Set(key, "1")
46 env.Set(key, "0")
53 func (env *Env) GetInt(key string) int {
58 func (env *Env) SetInt(key string, value int) {
59 env.Set(key, strconv.Itoa(value))
65 func (env *Env) GetInt64(key string) int64 {
75 func (env *Env) SetInt64(key string, value int64) {
76 env.Set(key, strconv.FormatInt(value, 10))
82 func (env *Env) GetJSON(key string, iface interface{}) error {
92 func (env *Env) SetJSON(key string, value interface{}) error {
97 env.Set(key, string(sval))
106 func (env *Env) GetList(key string) []string {
120 func (env *Env) SetList(key string, value []string) error {
125 func (env *Env) Set(key, value string) { func
133 func (env *Env) Decode(src io.Reader) error {
145 func (env *Env) SetAuto(key string, value interface{}) {
149 env.Set(key, sval)
151 env.Set(key, string(val))
153 env.Set(key, fmt.Sprintf("%v", value))
158 func (env *Env) Map() map[string]string {