stringutils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

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