mengeneinheit

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 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          Mengeneinheit = iota + 1 // Watt,
	WH                                  // Wattstunde
	KW                                  // Kilowatt
	KWH                                 // Kilowattstunde
	KVARH                               // Kilovarstunde
	MW                                  // Megawatt
	MWH                                 // Megawattstunde
	Stueck                              // number of pieces / Stückzahl
	KUBIKMETER                          // m^3
	Stunde                              // hour
	Tag                                 // day
	Monat                               // month
	Jahr                                // year
	Prozent                             // 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