currency

package
v0.1.2-alpha-5ce0f3a Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUB    = Currency(`rub`)
	NUMBER = Currency(`number`)
	USD    = Currency(`usd`)
	EUR    = Currency(`eur`)
	CUSTOM = Currency(`custom`)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

type Currency string

type CustomCurrency

type CustomCurrency struct {

	/**
	 * Integer currency name forms\
	 * for digits [1, 2-4, 5-9]\
	 * e.g. ['рубль', 'рубля', 'рублей']
	 */
	CurrencyNameCases [constants.CountNumberNameForms]string `yaml:"currencyNameCases"`

	/**
	 * Integer currency name forms\
	 * for declensions
	 */
	CurrencyNameDeclensions Declensions `yaml:"currencyNameDeclensions"`

	/**
	 * Fractional number currency name forms\
	 * for digits [1, 2-4, 5-9]\
	 * e.g. ['копейка', 'копейки', 'копеек']
	 */
	FractionalPartNameCases [constants.CountNumberNameForms]string `yaml:"fractionalPartNameCases"`

	/**
	 * Fractional number currency name forms\
	 * for declensions
	 */
	FractionalPartNameDeclensions Declensions `yaml:"fractionalPartNameDeclensions"`

	CurrencyNounGender NounGender `yaml:"currencyNounGender"`
}

type NounGender

type NounGender struct {
	/**
	 * 0 => 'один', 1 => 'одна', 2 => 'одно'\
	 * Default: `0`
	 */
	Integer genders.Gender `yaml:"integer"`

	/**
	 * 0 => 'один', 1 => 'одна', 2 => 'одно'\
	 * Default: `1`
	 */
	FractionalPart genders.Gender `yaml:"fractionalPart"`
}

Jump to

Keyboard shortcuts

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