bytes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasQuotes

func HasQuotes(input []byte) bool

HasQuotes checks if the first and last characters are either " or '.

func IsEmpty

func IsEmpty(bytes []byte) bool

IsEmpty returns true if bytes contains only zero values, or has len 0.

func TrimQuotes

func TrimQuotes(input []byte) []byte

TrimQuotes removes the first and last character if they are both either " or ', otherwise it is a noop.

Types

This section is empty.

Jump to

Keyboard shortcuts

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