NumericToString converts a numeric to a string.
(numeric pgtype.Numeric)
| 142 | |
| 143 | // NumericToString converts a numeric to a string. |
| 144 | func NumericToString(numeric pgtype.Numeric) string { |
| 145 | str, err := numeric.Value() |
| 146 | if err != nil { |
| 147 | panic(err) |
| 148 | } |
| 149 | return str.(string) |
| 150 | } |