base

package
v0.0.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2024 License: GPL-3.0 Imports: 4 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count int

func CalculateTotalPages

func CalculateTotalPages(totalItems Count, pageSize Count) Count

func (Count) AsInt

func (c Count) AsInt() int

func (Count) RawValue added in v0.0.65

func (c Count) RawValue() int

func (*Count) Scan

func (c *Count) Scan(src any) (err error)

func (Count) ToString

func (c Count) ToString() string

func (Count) Value

func (c Count) Value() (dv driver.Value, err error)

type Flag

type Flag bool

func (Flag) AsBool added in v0.0.65

func (f Flag) AsBool() bool

func (Flag) RawValue added in v0.0.65

func (f Flag) RawValue() bool

func (*Flag) Scan

func (f *Flag) Scan(src any) (err error)

func (Flag) ToString added in v0.0.65

func (f Flag) ToString() string

func (Flag) Value

func (f Flag) Value() (dv driver.Value, err error)

type Id

type Id int

func (Id) AsInt

func (i Id) AsInt() int

func (Id) RawValue added in v0.0.65

func (i Id) RawValue() int

func (*Id) Scan

func (i *Id) Scan(src any) (err error)

func (Id) ToString

func (i Id) ToString() string

func (Id) Value

func (i Id) Value() (dv driver.Value, err error)

type Index

type Index = Count

type Text

type Text string

func (Text) AsBytes added in v0.0.65

func (t Text) AsBytes() []byte

func (Text) AsString added in v0.0.65

func (t Text) AsString() string

func (Text) RawValue added in v0.0.65

func (t Text) RawValue() string

func (*Text) Scan

func (t *Text) Scan(src any) (err error)

func (Text) ToString

func (t Text) ToString() string

func (Text) Value

func (t Text) Value() (dv driver.Value, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL