strings

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSliceFromAny

func ByteSliceFromAny(a any) ([]byte, bool)

func HasAnyPrefix

func HasAnyPrefix(s string, prefixes ...string) bool

func HexEscapeNonASCII

func HexEscapeNonASCII(s string) string

HexEscapeNonASCII percent-encodes every non-ASCII byte (>= utf8.RuneSelf) in s and leaves ASCII bytes untouched. It mirrors the unexported net/http helper used to keep header values such as Location valid ASCII. Note that ASCII control bytes, including CR and LF, are not escaped.

func MakeTextualRepresentation

func MakeTextualRepresentation(value any) (string, error)

func ShellJoin

func ShellJoin(args []string) string

ShellJoin constructs a shell-quoted string from a list of tokens (ported from Python).

Types

This section is empty.

Jump to

Keyboard shortcuts

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