types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSlice

type StringSlice []string

StringSlice is a []string which will be stored in a database as a JSON array.

func (*StringSlice) Scan

func (s *StringSlice) Scan(value interface{}) error

Scan implements the sql.Scanner interface, unmarshalling the value coming off the wire and storing the result in the StringSlice.

func (StringSlice) Value

func (s StringSlice) Value() (driver.Value, error)

Value implements the driver.Valuer interface, marshalling the raw value to a JSON array.

Jump to

Keyboard shortcuts

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