Answers for "golang gorm float64"

Go
0

gorm float64

type MyStruct struct {
    Name        string `json:"name" gorm:"not null"`
    Description string `json:"description" gorm:"null"`
    Price decimal.Decimal `json:"price" gorm:"type:numeric"`
}
Posted by: Guest on October-27-2021
0

gorm float64

type Product struct {
      decimal.Decimal `gorm:"type:decimal(7,6);"`
}
Posted by: Guest on October-27-2021
0

gorm float64

type TableName struct {
  Amount    decimal.Decimal `json:"amount" sql:"type:decimal(20,8);"`
}
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language