extend.go 375 B

12345678910111213141516171819202122232425
  1. package config
  2. var ExtConfig Extend
  3. // Extend 扩展配置
  4. //
  5. // extend:
  6. // demo:
  7. // name: demo-name
  8. //
  9. // 使用方法: config.ExtConfig......即可!!
  10. type Extend struct {
  11. AMap AMap
  12. Demo Demo // 这里配置对应配置文件的结构即可
  13. }
  14. type AMap struct {
  15. Key string
  16. }
  17. type Demo struct {
  18. Name string
  19. NameD1 string
  20. NameD2 string
  21. NameD3 string
  22. }