// Package byteseq provides a Byteseq type that can be used to represent a sequence of bytes.
package byteseq import // Byteseq is common interface for byte slices and strings. type Byteseq interface { string | []byte } // DecodeRuneInByteseq decodes the first UTF-8 encoded rune in val and returns the rune and its size in bytes. func [ Byteseq]( ) ( rune, int) { var [4]byte := copy([:], ) return utf8.DecodeRune([:]) }