byteseq

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package byteseq provides a Byteseq type that can be used to represent a sequence of bytes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRuneInByteseq

func DecodeRuneInByteseq[T Byteseq](val T) (r rune, size int)

DecodeRuneInByteseq decodes the first UTF-8 encoded rune in val and returns the rune and its size in bytes.

Types

type Byteseq

type Byteseq interface {
	string | []byte
}

Byteseq is common interface for byte slices and strings.

Jump to

Keyboard shortcuts

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