The meaning of grom tag in ORM Library of Go language

the meaning of the grom tag in the ORM library of Go is shown in the screenshot below:

clipboard.png
question:
1, varchar and size:100 what"s the difference?
2, gorm: "-" what does it mean to ignore this field?

Go
Jun.28,2022

  1. string generates varchar by default, and size is a common length setting
  2. gorm: "-" No fields are generated when creating a table using AutoMigrate, so using the First method or the Scan method will only have a zero value of the type itself
Menu