serialization

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializable

type Serializable interface {
	sql.Scanner
	driver.Valuer
	// GetData returns the original wrapped value
	GetData() interface{}
}

Serializable is an interface to allow serialization and deserialization to a db

func JSONBlob

func JSONBlob(value interface{}) Serializable

JSONBlob returns an Serializable using json to []byte serialization

Directories

Path Synopsis
Package null implements nullable sql fields that are safely marshalable from/to json and text.
Package null implements nullable sql fields that are safely marshalable from/to json and text.

Jump to

Keyboard shortcuts

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