bytes

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package bytes is the internal, shared functions for manipulating bytes, created to prevent import cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenFind

func TokenFind(text, token []byte, startat int) (at int)

TokenFind return the first index of matched token in text, start at custom index. If "startat" parameter is less than 0, then it will be set to 0. If token is empty or no token found it will return -1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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