bytes

package
v0.0.115 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountIndex added in v0.0.50

func CountIndex(s, sep []byte) (c, index int)

CountIndex counts the number of non-overlapping instances of sep in s. Index returns the index of the first instance of sep in s, or -1 if sep is not present in s.

func NewIndent

func NewIndent(dst *bytes.Buffer, prefix, indent string, depth int)

func NewLine

func NewLine(dst *bytes.Buffer, prefix, indent string, depth int)

func Truncate added in v0.0.109

func Truncate(s []byte, n int) []byte

Truncate shrinks s's len to n at most

Types

This section is empty.

Jump to

Keyboard shortcuts

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