1 package vars 2 3 import "fmt" 4 5 type ErrBadKey struct { 6 msg string 7 } 8 9 func NewErrBadKey(msg string) ErrBadKey { 10 return ErrBadKey{msg: msg} 11 } 12 13 func (e ErrBadKey) Error() string { 14 return fmt.Sprintf("poorly formatted environment: %s", e.msg) 15 } 16