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

strings

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToLower

func ToLower(s string) string

Sub-word inputs convert here; see the bytes package for the measurement. ToLower converts an ASCII string to lower-case without modifying the input.

func ToUpper

func ToUpper(s string) string

ToUpper converts an ASCII string to upper-case without modifying the input.

func UnsafeToLower

func UnsafeToLower(s string) string

UnsafeToLower converts an ASCII string to lower-case by mutating its backing bytes in-place. This function is unsafe: it breaks string immutability and must only be used when the string is known to reference mutable memory.

func UnsafeToUpper

func UnsafeToUpper(s string) string

UnsafeToUpper converts an ASCII string to upper-case by mutating its backing bytes in-place. This function is unsafe: it breaks string immutability and must only be used when the string is known to reference mutable memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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