strconv.FormatInt 类型使用错误

不能在strconv.FormatInt的参数中使用a.ID(int类型)作为int64类型
// Link 方法用来生成文章链接
func (a Article) Link() string {
return route.Name2URL("articles.show", "id", strconv.FormatInt(a.ID, 10))
}
关于 LearnKu
数据类型转换 Int64 转化为 String