stringz

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsurePrefix

func EnsurePrefix(s, prefix string) string

EnsurePrefix ensures that the string has the given (non-repeated) prefix.

func EnsureSuffix

func EnsureSuffix(s, suffix string) string

EnsureSuffix ensures that the string has the given (non-repeated) suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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