uuid62

package module
v1.0.1-0...-9638c55 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 2 Imported by: 0

README

yuzuy/uuid62

UUID based a unique ID generator without hyphens inspired by shibukawa/uuid62.

Installation

go get -u github.com/yuzuy/uuid62

Usage

package main

import (
    "fmt"

    "github.com/yuzuy/uuid62"
)

func main() {
    fmt.Println(uuid62.MustNew())
}

Differences from shibukawa/uuid62

  • You can decide whether to handle the error by choosing New or MustNew
  • This uses google/uuid (shibukawa/uuid62 uses gofrs/uuid)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(v string) (uuid.UUID, error)

func Encode

func Encode(v uuid.UUID) string

func MustNew

func MustNew() string

func MustNewV1

func MustNewV1() string

func New

func New() (string, error)

func NewV1

func NewV1() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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