encoding

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coder

type Coder interface {
	Encode(ids ...int64) string
	DecodeInt64(code string) int64
	DecodeInt64Slice(code string) []int64
}

func New

func New(options ...Option) Coder

type Option

type Option func(o *encodingConfig)

func WithAlphabet

func WithAlphabet(alphabet string) Option

func WithMinLength

func WithMinLength(minLength uint8) Option

func WithRandomSalt

func WithRandomSalt(saltLength int) Option

func WithSalt

func WithSalt(salt string) Option

Jump to

Keyboard shortcuts

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