Нема описа
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.

12345678910111213141516171819202122232425
  1. package config
  2. import (
  3. "fmt"
  4. "testing"
  5. "git.x2erp.com/qdy/go-base/config/core"
  6. _ "git.x2erp.com/qdy/go-base/config/subconfigs"
  7. )
  8. func TestGetAllConfigsMeta(t *testing.T) {
  9. fmt.Println("=== 调试开始 ===")
  10. allMeta := core.GetAllConfigsMeta()
  11. fmt.Printf("配置数量(直接): %d\n", len(allMeta))
  12. for configName, configMeta := range allMeta {
  13. fmt.Printf("配置: %s. %s\n", configName, configMeta.Desc)
  14. for fieldName, fieldMeta := range configMeta.Fields {
  15. fmt.Printf(" 字段: %s, 类型: %s, YAML标签: %s, 描述: %s\n",
  16. fieldName, fieldMeta.Type, fieldMeta.YamlName, fieldMeta.Desc)
  17. }
  18. }
  19. }