jsonutils

package
v0.0.0-...-f003305 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONStringArray

type JSONStringArray []string

JSONStringArray is a wrapper around a string array for sql serialization purposes

func (*JSONStringArray) MarshalJSON

func (arr *JSONStringArray) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation

func (*JSONStringArray) Scan

func (arr *JSONStringArray) Scan(src interface{}) error

Scan the src sql type into the passed JSONStringArray

func (*JSONStringArray) UnmarshalJSON

func (arr *JSONStringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON sets the passed JSONStringArray to the value deserialized from JSON

func (*JSONStringArray) Value

func (arr *JSONStringArray) Value() (driver.Value, error)

Value the driver.Value representation

Jump to

Keyboard shortcuts

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