菜鸟有个问题,就是这么一个类代码:
type TestConfig struct {
ID int `goconf:"core:id"`
Col string `goconf:"core:col"`
Ignore int `goconf:"-"`
Arr []string `goconf:"core:arr:,"`
Test time.Duration `goconf:"core:t_1:time"`
Buf int `goconf:"core:buf:memory"`
M map[int]string`goconf:"core:m:,"`
}
后面的 goconf:"core:id"
是什么意思?是初始值吗?
有疑问加站长微信联系(非本文作者)
