1.golang interface增加元素
s := "first" rest := []interface{}{"second", 3} all := append([]interface{}{s}, rest...) fmt.Println(all)
posted on 2022-07-24 17:19 星河赵 阅读(710) 评论(0) 编辑 收藏 举报