mengeneinheit

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mengeneinheit

type Mengeneinheit int

Mengeneinheit is a unit used for measurements

const (
	// W is for Watt
	W          Mengeneinheit = iota + 1
	WH                       // WH is for Watt hour
	KW                       // KW is for Kilo watt
	KWH                      // KWH is for Kilo watt hour
	KVARH                    // KVARH is the abbreviation for Kilovarstunde
	MW                       // MW is for Megawatt
	MWH                      // MWH is for Mega watt hour
	STUECK                   // STUECK is for number of pieces / Stückzahl
	KUBIKMETER               // KUBIKMETER is m^3
	STUNDE                   // STUNDE is 1 hour
	TAG                      // TAG is 1 day
	MONAT                    // MONAT is 1 month
	JAHR                     // JAHR is year
	PROZENT                  // PROZENT is percent
)

func (Mengeneinheit) MarshalJSON

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

MarshalJSON is generated so Mengeneinheit satisfies json.Marshaler.

func (Mengeneinheit) String

func (i Mengeneinheit) String() string

func (*Mengeneinheit) UnmarshalJSON

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

UnmarshalJSON is generated so Mengeneinheit satisfies json.Unmarshaler.

Jump to

Keyboard shortcuts

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