golang struct tag

How the xorm tag use both with json?

Use space.

type User struct {

Name string `json:"name" xorm:"name"`

}

你可能感兴趣的:(golang struct tag)