str

package
v6.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package str contains useful functions for string manipulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(str, pre string) string

AddPrefix will add prefix to given string.

func FirstNotEmpty

func FirstNotEmpty(values ...string) string

FirstNotEmpty returns first not empty string

func From

func From(data interface{}) string

From converts any type to string.

func GetIntID

func GetIntID(str, prefix string) (int, error)

GetIntID is used to get the id out from the string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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