Help us shape the future of Go! Take the 2026 Go Developer Survey

encoding

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 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