uuid

package
v0.0.0-...-ed9fe1d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package uuid to generate UUID string We support only RFC4122 compatible one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID [16]byte

UUID is an alias for uuid string

func FromString

func FromString(s string) (UUID, bool)

FromString returns *UUID from string

func New

func New() UUID

New generates uuid v4 following RFC4122 Section 4.4

func (UUID) MarshalJSON

func (u UUID) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler#MarshalJSON()

func (UUID) String

func (u UUID) String() string

func (*UUID) UnmarshalJSON

func (u *UUID) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler#UnmarshalJSON()

Jump to

Keyboard shortcuts

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