id

package
v0.0.0-...-e4cdb90 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidID = errors.New("invalid id")

Functions

This section is empty.

Types

type ID

type ID string

func New

func New() (ID, error)

func Parse

func Parse(s string) (ID, error)

func (ID) Validate

func (id ID) Validate() error

Validate checks ID's validity. Returns ErrInvalidID if invalid.

Jump to

Keyboard shortcuts

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