types

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAssertion = errors.New("type assertion to []byte failed")

Functions

This section is empty.

Types

type StringSlice

type StringSlice []string

func (StringSlice) Contains

func (a StringSlice) Contains(s string) bool

Contains reports is in slice

func (*StringSlice) Scan

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

Scan Make the StringSlice implement the sql.Scanner interface. This method simply decodes a JSON-encoded value into the StringSlice.

func (StringSlice) Value

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

Value Make the StringSlice implement the driver.Valuer interface. This method simply returns the JSON-encoded representation of the StringSlice.

Jump to

Keyboard shortcuts

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