Files
plexgo/types/decimal.go
2024-09-09 18:15:22 +00:00

21 lines
445 B
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package types
import (
"fmt"
"github.com/ericlagergren/decimal"
)
// MustNewDecimalFromString returns an instance of Decimal from a string
// Avoid using this function in production code.
func MustNewDecimalFromString(s string) *decimal.Big {
d, ok := new(decimal.Big).SetString(s)
if !ok {
panic(fmt.Errorf("failed to parse string as decimal.Big"))
}
return d
}