types

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAssertion = errors.New("type assertion to []byte failed")

Functions

This section is empty.

Types

type IID added in v0.12.0

type IID uint64

IID Integer ID

func ParseID added in v0.12.0

func ParseID(s string) (IID, error)

ParseID ...

func (IID) Bytes added in v0.12.0

func (z IID) Bytes() []byte

Bytes ...

func (IID) MarshalText added in v0.12.0

func (z IID) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (*IID) Scan added in v0.12.0

func (z *IID) Scan(src interface{}) (err error)

Scan implements of database/sql.Scanner

func (IID) String added in v0.12.0

func (z IID) String() string

String ...

func (*IID) UnmarshalText added in v0.12.0

func (z *IID) UnmarshalText(data []byte) (err error)

UnmarshalText implements the encoding.TextUnmarshaler interface.

func (IID) Value added in v0.12.0

func (z IID) Value() (driver.Value, error)

Value implements of database/sql/driver.Valuer

type StringSlice

type StringSlice []string

func (StringSlice) Contains

func (a StringSlice) Contains(s string) bool

Contains reports is in slice

func (*StringSlice) Scan

func (a *StringSlice) Scan(value interface{}) error

Scan Make the StringSlice implement the sql.Scanner interface. This method simply decodes a JSON-encoded value into the StringSlice.

func (StringSlice) Value

func (a StringSlice) Value() (driver.Value, error)

Value Make the StringSlice implement the driver.Valuer interface. This method simply returns the JSON-encoded representation of the StringSlice.

Jump to

Keyboard shortcuts

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