base

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 6 Imported by: 53

Documentation

Index

Constants

View Source
const (
	ErrF_UnsupportedDataType  = "unsupported data type: %s"
	ErrF_UnsupportedDataValue = "unsupported data value: %v"
)

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) 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) Bool

func (f Flag) Bool() bool

func (*Flag) Scan

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

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) 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) Scan

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

func (Text) ToBytes

func (t Text) ToBytes() []byte

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