currency

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFloat64NegativeSign

func FormatFloat64NegativeSign(i float64) string

FormatFloat64NegativeSign reurns a string with dollar sign, commas, and in parenthesis if negative.

func FormatFloat64Parens

func FormatFloat64Parens(i float64) string

FormatFloat64Parens reurns a string with dollar sign, commas, and a minus sign if negative.

func FormatIntNegativeSign

func FormatIntNegativeSign(i int) string

FormatIntNegativeSign returns a string with dollar sign, commas, and a minus sign if negative.

func FormatIntParens

func FormatIntParens(i int) string

FormatIntParens returns a string with dollar sign, commas, and in parenthesis if negative.

Types

type Negative

type Negative int64

Negative is format of showing a negative currency.

const (
	// NegativeSign shows currency with a minus sign.
	NegativeSign Negative = iota
	// NegativeParen shows currency in parenthesis.
	NegativeParen
)

Jump to

Keyboard shortcuts

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