You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 yıl önce
1234567891011121314151617
  1. package rex
  2. import (
  3. "path"
  4. "github.com/goanywhere/env"
  5. "github.com/goanywhere/fs"
  6. )
  7. // Shortcut for string based map.
  8. type M map[string]interface{}
  9. func init() {
  10. var basedir = fs.Getcd(2)
  11. env.Set("basedir", basedir)
  12. env.Load(path.Join(basedir, ".env"))
  13. }