Discover Packages
github.com/shuLhan/share
internal
bytes
package
Version:
v0.49.0
Opens a new window with list of versions in this module.
Published: Aug 4, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package bytes is the internal, shared functions for manipulating bytes,
created to prevent import cycle.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.