Some checks failed
		
		
	
	Build / build (push) Has been cancelled
				
			CodeQL / Analyze (go) (push) Has been cancelled
				
			build / Build (push) Has been cancelled
				
			GitHub Actions Mirror / mirror_to_gitee (push) Has been cancelled
				
			GitHub Actions Mirror / mirror_to_gitlab (push) Has been cancelled
				
			Issue Close Require / issue-close-require (push) Has been cancelled
				
			Issue Check Inactive / issue-check-inactive (push) Has been cancelled
				
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			545 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			545 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package config
 | |
| 
 | |
| var ExtConfig Extend
 | |
| 
 | |
| // Extend 扩展配置
 | |
| //
 | |
| //	extend:
 | |
| //	  demo:
 | |
| //	    name: demo-name
 | |
| //
 | |
| // 使用方法: config.ExtConfig......即可!!
 | |
| type Extend struct {
 | |
| 	AMap       AMap // 这里配置对应配置文件的结构即可
 | |
| 	Mq         MqConfig
 | |
| 	TrxGridUrl string `yaml:"trxGridUrl"`
 | |
| 	TronApiKey string `yaml:"tronApiKey"`
 | |
| }
 | |
| 
 | |
| type AMap struct {
 | |
| 	Key string
 | |
| }
 | |
| 
 | |
| type MqConfig struct {
 | |
| 	Addr     string `yaml:"addr"`
 | |
| 	Username string `yaml:"username"`
 | |
| 	// Password string `yaml:"password"`
 | |
| 	Pass string `yaml:"pass"`
 | |
| }
 |