Golang interface{} 做为函数参数和函数返回值例子

package main import ( "errors" "fmt" ) type item struct { Name string } func (i item) String() string { return fmt.Sprintf("item name:%v", i.Name) } type person struct { Name s
相关文章
相关标签/搜索