strutil

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pad

func Pad(s string, length int) string

Pad returns a string of length `length` by padding `s` with spaces. If `s` is already longer than `length`, it is returned as-is.

func Random

func Random(length int) (string, error)

Random returns a random url and filepath safe string of length `length`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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