common

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals

func Equals(uuid1, uuid2 UUID) bool

Types

type UUID

type UUID uuid.UUID

func NewUUID

func NewUUID() UUID

func UUIDFromString

func UUIDFromString(s string) UUID

func (UUID) Scan

func (id UUID) Scan(val interface{}) error

func (UUID) String

func (i UUID) String() string

func (UUID) Value

func (id UUID) Value() (driver.Value, error)

For custom mapping to sql data base

type Url

type Url url.URL

func NewUrl

func NewUrl(s string) *Url

func (*Url) MarshalJSON

func (u *Url) MarshalJSON() ([]byte, error)

func (*Url) String

func (u *Url) String() string

func (*Url) UnmarshalJSON

func (u *Url) UnmarshalJSON(ss []byte) error

Jump to

Keyboard shortcuts

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