byteslice

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAnySlice added in v0.2.4

func FromAnySlice[T any](s []T) []byte

func FromString

func FromString[T Type](s string) []T

func FromStruct

func FromStruct[T any](s *T) []byte

func PtrFromAnySlice added in v0.2.4

func PtrFromAnySlice[T any](s []T) *T

func PtrFromString

func PtrFromString[T Type](s string) *T

func PtrToString

func PtrToString[T Type](p *T) string

func ToString

func ToString[T Type](s []T) string

func ToStruct

func ToStruct[T any](b []byte) *T

Types

type Type

type Type interface {
	~uint8 | ~int8
}

Jump to

Keyboard shortcuts

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