strutil

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package strutil provides some miscellaneous string functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsASCIISpace

func IsASCIISpace(c byte) bool

IsASCIISpace returns true if c represents an ASCII whitespace byte.

func TrimSpace

func TrimSpace(s string) string

TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode. (It behaves the same as Go's strings.TrimSpace, but has a fast path for ASCII strings so is much faster for common cases.)

Types

This section is empty.

Jump to

Keyboard shortcuts

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