stringutil

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 13 modules, 38 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize added in v1.13.11

func Capitalize(str string) string

Capitalize returns a copy of the string str with the first letter mapped to its upper case.

func Concat

func Concat(parts ...string) string

Concat concatenates parts of a string together.

func Diff

func Diff(new, old []string) (add, del []string)

Diff calculates difference of two sorted string (in ASC order).

func String

func String(b []byte) string

String returns a string value whose underlying bytes is b.

Since Go strings are immutable, the bytes passed to String must not be modified afterwards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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