amount

package
v0.0.0-...-c061cf9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount struct {
	// Value denotes the number of currency in an amount. The last two digits
	// are the cents of the given currency. While this value is of type
	// the limitation is 9223372036854775807 due to database type limitations
	Value    int64  `validate:"gte=0"`
	Currency string `validate:"len=3,alpha"`
}

Jump to

Keyboard shortcuts

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