How to pick a value by it's name within a struct in go

前端 未结 0 1137
南笙
南笙 2020-12-23 03:55

I have this code:

func avatar(avatar string) string {
type persona struct {
    name string
    face string
}

personas := []persona{
    {name: "goat&qu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题