Implement linter fixes
This commit is contained in:
@ -18,16 +18,11 @@ func Zero() Numeric {
|
||||
}
|
||||
|
||||
func FromInt64(value int64) Numeric {
|
||||
num := Numeric{}
|
||||
num.Set(value)
|
||||
return num
|
||||
return Numeric{Numeric: pgtype.Numeric{Int: big.NewInt(value), Status: pgtype.Present}}
|
||||
}
|
||||
|
||||
func FromInt64WithExp(value int64, exp int32) Numeric {
|
||||
num := Numeric{}
|
||||
num.Set(value)
|
||||
num.Exp = exp
|
||||
return num
|
||||
return Numeric{Numeric: pgtype.Numeric{Int: big.NewInt(value), Exp: exp, Status: pgtype.Present}}
|
||||
}
|
||||
|
||||
func (n Numeric) GetFloat64() float64 {
|
||||
|
Reference in New Issue
Block a user