Linx's Solution

Golang Create Struct

Golang 创建对象的方式

type Struct struct {

}
  1. s := new(Struct)

等同于

var s *Struct = new(Struct)
  1. s := &Struct{}

  2. var s Struct

c.Bind(&s)