stringutils

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: GPL-2.0 Imports: 7 Imported by: ? modules, 0 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 ExtractDigits

func ExtractDigits(str string) string

func IsNullOrEmpty

func IsNullOrEmpty(value string) bool

func PadLeft

func PadLeft(input interface{}, totalLength int, paddingCharacter rune) string

func PadRight

func PadRight(input string, totalLength int, paddingCharacter rune) string

func ToAmount

func ToAmount(str string) (*decimal.Decimal, error)

func ToCurrencyString

func ToCurrencyString(amount *decimal.Decimal) string

func ToDecimal

func ToDecimal(amount *decimal.Decimal, length int) string

func ToDecimalAmount

func ToDecimalAmount(str string) (*decimal.Decimal, error)

func ToFractionalAmount

func ToFractionalAmount(str string) *decimal.Decimal

func ToNumeric

func ToNumeric(str string) string

func ToNumericFromAmount

func ToNumericFromAmount(amount *decimal.Decimal) string

func ToNumericWithLength

func ToNumericWithLength(amount *decimal.Decimal, length int) string

func ToString

func ToString(value string, decimalPlace int) *decimal.Decimal

func TrimStart

func TrimStart(str, trimString string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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