types

package
v0.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uint64

ID represents a generic identifier which is canonically stored as a uint64 but is typically represented as a base-16 string for input/output

func IDFromString

func IDFromString(s string) (ID, error)

IDFromString attempts to create an ID from a base-16 string.

func (ID) String

func (i ID) String() string

type IDSlice

type IDSlice []ID

IDSlice implements the sort interface

func (IDSlice) Len

func (p IDSlice) Len() int

func (IDSlice) Less

func (p IDSlice) Less(i, j int) bool

func (IDSlice) Swap

func (p IDSlice) Swap(i, j int)

type URLs

type URLs []url.URL

func NewURLs

func NewURLs(strs []string) (URLs, error)

func (URLs) Len

func (us URLs) Len() int

func (URLs) Less

func (us URLs) Less(i, j int) bool

func (*URLs) Sort

func (us *URLs) Sort()

func (URLs) String

func (us URLs) String() string

func (URLs) StringSlice

func (us URLs) StringSlice() []string

func (URLs) Swap

func (us URLs) Swap(i, j int)

type Uint64Slice

type Uint64Slice []uint64

Uint64Slice implements sort interface

func (Uint64Slice) Len

func (p Uint64Slice) Len() int

func (Uint64Slice) Less

func (p Uint64Slice) Less(i, j int) bool

func (Uint64Slice) Swap

func (p Uint64Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

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