convert

package
v1.0.5-1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversion

type Conversion interface {
	To
	From
}

Conversion is an interface. A type implements Conversion will according the custom method to fill into database and retrieve from database.

type From

type From interface {
	FromDB([]byte) error
}

From specifies the interface for scanning data from the database.

type To

type To interface {
	ToDB() ([]byte, error)
}

To specifies the encoding data to sent to the database.

Jump to

Keyboard shortcuts

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