suid

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SUID

type SUID string

func FromUUID

func FromUUID(uid UUID) SUID

func NewSUID

func NewSUID() SUID

func (SUID) String

func (sid SUID) String() string

func (SUID) UUID

func (s SUID) UUID() (UUID, error)

type UUID

type UUID struct{ uuid.UUID }

func MustParse

func MustParse(s string) UUID

Decode decodes a short uuid string into a suid.UUID. If s is too short, its most significant bits (MSB) will be padded with 0 (zero).

This will panic if there is an error.

func NewUUID

func NewUUID() UUID

func ParseString

func ParseString(s string) (UUID, error)

Decode decodes a short uuid string into a suid.UUID. If s is too short, its most significant bits (MSB) will be padded with 0 (zero).

func (UUID) ShortUUID

func (u UUID) ShortUUID() SUID

Jump to

Keyboard shortcuts

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