Lines Matching refs:e
39 func (e *Environment) Get(key string) (string, bool) {
40 for _, env := range *e {
50 func (e *Environment) GetInt(key string) (int, bool) {
51 if v, ok := e.Get(key); ok {
61 func (e *Environment) Set(key, value string) {
62 e.Unset(key)
63 *e = append(*e, key+"="+value)
67 func (e *Environment) Unset(keys ...string) {
68 out := (*e)[:0]
69 for _, env := range *e {
75 *e = out
79 func (e *Environment) UnsetWithPrefix(prefix string) {
80 out := (*e)[:0]
81 for _, env := range *e {
87 *e = out
91 func (e *Environment) Allow(keys ...string) {
92 out := (*e)[:0]
93 for _, env := range *e {
98 *e = out
102 func (e *Environment) Environ() []string {
103 return []string(*e)
107 func (e *Environment) Copy() *Environment {
108 ret := Environment(make([]string, len(*e)))
109 for i, v := range *e {
116 func (e *Environment) IsEnvTrue(key string) bool {
117 if value, ok := e.Get(key); ok {
124 func (e *Environment) IsFalse(key string) bool {
125 if value, ok := e.Get(key); ok {
133 func (e *Environment) AppendFromKati(filename string) error {
140 return e.appendFromKati(file)
143 func (e *Environment) appendFromKati(reader io.Reader) error {
162 e.Unset(str)
178 e.Set(key, value)