types

package
v0.0.0-...-a7a9960 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

func NewAddress

func NewAddress(value string) Address

func (Address) MarshalText

func (n Address) MarshalText() ([]byte, error)

func (*Address) Scan

func (n *Address) Scan(src interface{}) error

func (*Address) Set

func (n *Address) Set(value string)

func (Address) String

func (n Address) String() string

func (*Address) UnmarshalText

func (n *Address) UnmarshalText(data []byte) (err error)

func (Address) Value

func (n Address) Value() (driver.Value, error)

type Date

type Date struct {
	time.Time
}

func NewDate

func NewDate(value time.Time) Date

func (Date) MarshalJSON

func (d Date) MarshalJSON() ([]byte, error)

http://golang.org/src/time/time.go # MarshalJSON()

func (Date) MarshalText

func (d Date) MarshalText() ([]byte, error)

func (*Date) Scan

func (d *Date) Scan(src interface{}) (err error)

func (*Date) Set

func (d *Date) Set(value string) (err error)

func (Date) String

func (d Date) String() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(data []byte) error

func (*Date) UnmarshalText

func (d *Date) UnmarshalText(data []byte) error

func (Date) Value

func (d Date) Value() (driver.Value, error)

type Duration

type Duration struct {
	time.Duration
}

Duration is always represented in minutes

func NewDuration

func NewDuration(value time.Duration) Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (Duration) MarshalText

func (d Duration) MarshalText() ([]byte, error)

func (*Duration) Scan

func (d *Duration) Scan(src interface{}) (err error)

func (*Duration) Set

func (d *Duration) Set(value string) (err error)

func (Duration) String

func (d Duration) String() string

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(data []byte) error

func (Duration) Value

func (d Duration) Value() (driver.Value, error)

type Email

type Email struct {
	// contains filtered or unexported fields
}

func NewEmail

func NewEmail(value string) (Email, error)

func (Email) MarshalText

func (e Email) MarshalText() ([]byte, error)

func (*Email) Scan

func (e *Email) Scan(src interface{}) (err error)

func (*Email) Set

func (e *Email) Set(value string) (err error)

func (Email) String

func (e Email) String() string

func (*Email) UnmarshalText

func (e *Email) UnmarshalText(data []byte) (err error)

func (Email) Value

func (e Email) Value() (driver.Value, error)

type Name

type Name struct {
	// contains filtered or unexported fields
}

func NewName

func NewName(value string) Name

func (Name) MarshalText

func (n Name) MarshalText() ([]byte, error)

func (*Name) Scan

func (n *Name) Scan(src interface{}) error

func (*Name) Set

func (n *Name) Set(value string)

func (Name) String

func (n Name) String() string

func (*Name) UnmarshalText

func (n *Name) UnmarshalText(data []byte) (err error)

func (Name) Value

func (n Name) Value() (driver.Value, error)

type Time

type Time struct {
	time.Time
}

func NewTime

func NewTime(value time.Time) Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalText

func (t Time) MarshalText() ([]byte, error)

func (*Time) Scan

func (t *Time) Scan(src interface{}) (err error)

func (*Time) Set

func (t *Time) Set(value string) (err error)

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

func (*Time) UnmarshalText

func (t *Time) UnmarshalText(data []byte) error

func (Time) Value

func (t Time) Value() (driver.Value, error)

type Weekday

type Weekday struct {
	time.Weekday
}

func NewWeekday

func NewWeekday(value time.Weekday) Weekday

func (Weekday) MarshalJSON

func (w Weekday) MarshalJSON() ([]byte, error)

func (Weekday) MarshalText

func (w Weekday) MarshalText() ([]byte, error)

func (*Weekday) Scan

func (w *Weekday) Scan(src interface{}) error

func (*Weekday) Set

func (w *Weekday) Set(value string) (err error)

func (*Weekday) UnmarshalJSON

func (w *Weekday) UnmarshalJSON(data []byte) error

func (*Weekday) UnmarshalText

func (w *Weekday) UnmarshalText(data []byte) error

func (Weekday) Value

func (w Weekday) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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