newtype

package module
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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) 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) 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