type User struct {
	Uid   int
	Name  string
	Pass1 string `gconv:"password1"`
	Pass2 string `gconv:"password2"`
}

func main() {
	//user := (*User)(nil)
	//user := &User{}
	user := new(User)
	fmt.Println(user)
}

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
猜你喜欢
  • 2021-09-01
  • 2021-09-26
  • 2021-10-07
  • 2021-11-02
  • 2021-05-18
  • 2021-10-13
  • 2021-07-14
相关资源
相似解决方案