mengeneinheit

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 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 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
	ANZAHL                   // ANZAHL means the same as STUECK (it has been renamed in the official docs, so this is just a fallback, use STUECK if you can); see also https://github.com/Hochfrequenz/BO4E-python/issues/359
	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) Scan added in v0.2.3

func (r *Mengeneinheit) 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 (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.

func (Mengeneinheit) Value added in v0.2.3

func (r Mengeneinheit) 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