newtype

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 4 Imported by: 1

README

newtype

Custom type for special cases in golang.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool bool

Bool is a custom defined type for bool.

func (*Bool) FromDB added in v1.0.2

func (b *Bool) FromDB(value []byte) (err error)

FromDB implementing Conversion interface for xorm.

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() (result []byte, err error)

MarshalJSON implements the MarshalJSON interface.

func (*Bool) Scan added in v1.0.1

func (b *Bool) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Bool) ToDB added in v1.0.2

func (b Bool) ToDB() (val []byte, err error)

ToDB implementing Conversion interface for xorm.

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(payload []byte) (err error)

UnmarshalJSON implementing UnmarshalJSON interface.

func (Bool) Value added in v1.0.1

func (b Bool) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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