dtype

package
v0.0.0-...-74cc791 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON map[string]interface{}

JSON custom type to mapping from jsonb of postgres

func ToJSON

func ToJSON(obj interface{}) (JSON, error)

ToJSON convert struct to JSON

func (*JSON) Scan

func (m *JSON) Scan(value interface{}) error

Scan implements the sql.Scanner interface.

func (JSON) Value

func (m JSON) 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