Documentation
¶
Index ¶
- Variables
- func GenericScan(v, src any) error
- type Array
- type JsonRaw
- func (j *JsonRaw[T]) Get() T
- func (j JsonRaw[T]) MarshalJSON() ([]byte, error)
- func (j *JsonRaw[T]) Scan(src interface{}) (err error)
- func (j *JsonRaw[T]) Set(v T)
- func (j *JsonRaw[T]) SetSrc(src []byte)
- func (j JsonRaw[T]) Src() []byte
- func (j JsonRaw[T]) String() string
- func (j JsonRaw[T]) T() any
- func (j JsonRaw[T]) TypeForExport() any
- func (j *JsonRaw[T]) UnmarshalJSON(src []byte) error
- func (j *JsonRaw[T]) V() (driver.Value, error)
- func (j JsonRaw[T]) Value() (driver.Value, error)
- type Null
- type Rat
- func (z *Rat) Abs(x *Rat) *Rat
- func (z *Rat) Add(x, y *Rat) *Rat
- func (z *Rat) AddX(x *Rat) *Rat
- func (z *Rat) Clone() *Rat
- func (x *Rat) Cmp(y *Rat) int
- func (z *Rat) FloatString(prec int) string
- func (z *Rat) Inv(x *Rat) *Rat
- func (j Rat) MarshalJSON() ([]byte, error)
- func (z *Rat) Mul(x, y *Rat) *Rat
- func (z *Rat) MulX(x *Rat) *Rat
- func (z *Rat) Neg() *Rat
- func (z *Rat) Quo(x, y *Rat) *Rat
- func (z *Rat) QuoX(x *Rat) *Rat
- func (z *Rat) Scan(value interface{}) error
- func (z *Rat) Set(x *Rat) *Rat
- func (z *Rat) SetFloat64(f float64) *Rat
- func (z *Rat) SetFrac(a, b *big.Int) *Rat
- func (z *Rat) SetFrac64(a, b int64) *Rat
- func (z *Rat) SetInt(x *big.Int) *Rat
- func (z *Rat) SetInt64(x int64) *Rat
- func (z *Rat) SetString(s string) (*Rat, bool)
- func (z *Rat) SetUint64(x uint64) *Rat
- func (z *Rat) String() string
- func (z *Rat) Sub(x, y *Rat) *Rat
- func (z *Rat) SubX(x *Rat) *Rat
- func (j Rat) TypeForExport() any
- func (j *Rat) UnmarshalJSON(src []byte) error
- func (z Rat) Value() (driver.Value, error)
- type SqliteTime
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ZeroRat = NewRat(0, 1)
)
Functions ¶
func GenericScan ¶
Types ¶
type JsonRaw ¶
type JsonRaw[T any] struct { // contains filtered or unexported fields }
func NewJsonRaw ¶
func (JsonRaw[T]) MarshalJSON ¶
func (JsonRaw[T]) TypeForExport ¶
func (*JsonRaw[T]) UnmarshalJSON ¶
type Null ¶
func (Null[T]) MarshalJSON ¶
func (Null[T]) TypeForExport ¶
func (*Null[T]) UnmarshalJSON ¶
type Rat ¶
func NewRatFromFloat64 ¶
func NewRatFromString ¶
func (*Rat) FloatString ¶
func (Rat) MarshalJSON ¶
func (*Rat) SetFloat64 ¶
SetFloat64 sets z to exactly f and returns z. If f is not finite, SetFloat returns nil.
func (*Rat) SetString ¶
SetString sets z to the value of s and returns z and a boolean indicating success.
func (*Rat) UnmarshalJSON ¶
type SqliteTime ¶
func (*SqliteTime) Scan ¶
func (t *SqliteTime) Scan(src any) error
Click to show internal directories.
Click to hide internal directories.