Help us shape the future of Go! Take the 2026 Go Developer Survey

stringsx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayName

func DisplayName(tokens []Token) string

func Every

func Every(s string, test func(rune) bool) bool

func RenderDiff

func RenderDiff(diffs []diffmatchpatch.Diff) string

func TrimEmpty

func TrimEmpty(lines []string) []string

TrimEmpty trims empty or whitespace-only lines from the start and end of a slice of lines.

func Truncate

func Truncate(s string, n int) string

Types

type Token

type Token []rune

func Tokens

func Tokens(id string) []Token

func (Token) String

func (t Token) String() string

Jump to

Keyboard shortcuts

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