common

package
v0.0.0-...-7412f86 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals

func Equals(uuid1, uuid2 UUID) bool

func TypeMatch

func TypeMatch(this interface{}, that interface{}) bool

A simple check of type comparison. Ptr to a struct and struct are considered compatible. This is useful mostly for the cases where we have interface implementations

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