str

package
v0.0.0-...-9033d6b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Repr

func Repr[T Symbol](value T) string

Repr generates a string representation of a Symbol, for logging and debugging purposes.

func SymbolType

func SymbolType[T Symbol]() uint8

Types

type String

type String[S Symbol] []S

A String is a sequence of [Symbol]s.

type Symbol

type Symbol interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64
}

A Symbol is any numeric type. Typically, the Symbol type is a [byte], but this library will work with Strings with other Symbol types as well.

Jump to

Keyboard shortcuts

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