摘要:        
在把map里的string赋值给其他结构变量的时候报错了, 中文报错:无法在多个赋值中将 interface 赋给 xxx (类型 string) 英文报错:Cannot assign interface to xxx (type string) in multiple assignment 错误的    阅读全文
posted @ 2021-06-06 01:46
5055555
阅读(3121)
评论(0)
推荐(1)
        
            
        
        
摘要:        
首先我的yaml文件是这样的: setting: corpid: 1 corpsecret: 2 然后附上解析代码: package main import ( "fmt" "gopkg.in/yaml.v2" "io/ioutil" "log" ) type Config struct { Cor    阅读全文
posted @ 2021-06-06 00:50
5055555
阅读(595)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号