waehrungseinheit

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code auto-generated; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Waehrungseinheit

type Waehrungseinheit int

Waehrungseinheit models euro and euro cent. In diesem Enum werden die Währungen und ihre Untereinheiten definiert, beispielsweise für die Verwendung in Preisen.

const (
	// EUR is for Euro
	EUR Waehrungseinheit = iota + 1
	// CT is for Eurocent
	CT
)

func (Waehrungseinheit) MarshalJSON

func (r Waehrungseinheit) MarshalJSON() ([]byte, error)

MarshalJSON is generated so Waehrungseinheit satisfies json.Marshaler.

func (*Waehrungseinheit) Scan added in v0.2.3

func (r *Waehrungseinheit) Scan(src interface{}) error

Scan sets r to the enum value represented by src. It implements the sql.Scanner interface to be useable by sql drivers when reading from database.

func (Waehrungseinheit) String

func (i Waehrungseinheit) String() string

func (*Waehrungseinheit) UnmarshalJSON

func (r *Waehrungseinheit) UnmarshalJSON(data []byte) error

UnmarshalJSON is generated so Waehrungseinheit satisfies json.Unmarshaler.

func (Waehrungseinheit) Value added in v0.2.3

func (r Waehrungseinheit) Value() (driver.Value, error)

Value returns the string representation of r or an error, if no string representation exists. It implements the sql.Valuer interface to be useable by sql drivers when storing enums.

Jump to

Keyboard shortcuts

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