您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }