使用Goland编译时,报错如下:Cannot use 'acceptList' (type *List) as the type string,希望大佬可以帮忙告知一下如何把*List转化为string类型。
var str []string
for e := list.Front(); e != nil; e = e.Next() {
str = append(str,fmt.Sprint(e.Value))
}
#2