ids

package
v0.0.0-...-8fcfbba Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: LGPL-3.0 Imports: 3 Imported by: 1

Documentation

Overview

This package defines a common id type which is used through out slick. It is based on random 16 byte values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b ID) int

Types

type ByLexicographical

type ByLexicographical []ID

func (ByLexicographical) Len

func (s ByLexicographical) Len() int

func (ByLexicographical) Less

func (s ByLexicographical) Less(i, j int) bool

func (ByLexicographical) Swap

func (s ByLexicographical) Swap(i, j int)

type ID

type ID [16]byte

func IDFromBytes

func IDFromBytes(b []byte) ID

func NewID

func NewID() ID

Jump to

Keyboard shortcuts

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