Why can't I create constant struct?
const FEED_TO_INSERT = quzx.RssFeed{ 0,
"",
"desc",
"www.some-site.com",
"upd_url",
"img_title",
"img_url",
0,
0,
0,
0,
0,
100,
"alt_name",
1,
1,
1,
"test",
100,
100,
0 }
.
ss_test.go:32: const initializer quzx.RssFeed literal is not a constant
question from:
https://stackoverflow.com/questions/43368604/constant-struct-in-go 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…