snowflake

package
v24.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package snowflake handles conversions between strings and snowflakes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snowflake

type Snowflake uint64

Snowflake represents a discord-like snowflake id

func FromString

func FromString(v string) (s Snowflake, err error)

FromString converts a string representation of a snowflake into a snowflake

func (Snowflake) ToString

func (s Snowflake) ToString() string

ToString converts the snowflake into a string representation

Jump to

Keyboard shortcuts

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