Documentation ¶
Index ¶
- Variables
- type Dimensions
- type Electrical
- type ImperialLengthUnit
- func (t ImperialLengthUnit) MarshalJSON() ([]byte, error)
- func (t ImperialLengthUnit) MarshalYAML() (interface{}, error)
- func (t *ImperialLengthUnit) Scan(value interface{}) error
- func (t ImperialLengthUnit) String() string
- func (t *ImperialLengthUnit) UnmarshalJSON(data []byte) error
- func (t *ImperialLengthUnit) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (t ImperialLengthUnit) Value() (driver.Value, error)
- type Length
- type MeasurementFormatType
- func (t MeasurementFormatType) MarshalJSON() ([]byte, error)
- func (t MeasurementFormatType) MarshalYAML() (interface{}, error)
- func (t *MeasurementFormatType) Scan(value interface{}) error
- func (t MeasurementFormatType) String() string
- func (t *MeasurementFormatType) UnmarshalJSON(data []byte) error
- func (t *MeasurementFormatType) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (t MeasurementFormatType) Value() (driver.Value, error)
- type MeasurementSystem
- func (t MeasurementSystem) MarshalJSON() ([]byte, error)
- func (t MeasurementSystem) MarshalYAML() (interface{}, error)
- func (t *MeasurementSystem) Scan(value interface{}) error
- func (t MeasurementSystem) String() string
- func (t *MeasurementSystem) UnmarshalJSON(data []byte) error
- func (t *MeasurementSystem) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (t MeasurementSystem) Value() (driver.Value, error)
- type MetricUnit
- func (t MetricUnit) MarshalJSON() ([]byte, error)
- func (t MetricUnit) MarshalYAML() (interface{}, error)
- func (t *MetricUnit) Scan(value interface{}) error
- func (t MetricUnit) String() string
- func (t *MetricUnit) UnmarshalJSON(data []byte) error
- func (t *MetricUnit) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (t MetricUnit) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ImperialLengthUnits = imperialLengthUnits{ Twip: ImperialLengthUnit("Twip"), Thou: ImperialLengthUnit("Thou"), Barleycorn: ImperialLengthUnit("Barleycorn"), Inch: ImperialLengthUnit("Inch"), Hand: ImperialLengthUnit("Hand"), Foot: ImperialLengthUnit("Foot"), Yard: ImperialLengthUnit("Yard"), Chain: ImperialLengthUnit("Chain"), Furlong: ImperialLengthUnit("Furlong"), Mile: ImperialLengthUnit("Mile"), League: ImperialLengthUnit("League"), Fathom: ImperialLengthUnit("Fathom"), Cable: ImperialLengthUnit("Cable"), NauticalMile: ImperialLengthUnit("NauticalMile"), Link: ImperialLengthUnit("Link"), Rod: ImperialLengthUnit("Rod"), Err: fmt.Errorf("invalid ImperialLengthUnit"), }
View Source
var MeasurementFormatTypes = measurementFormatTypes{ Full: MeasurementFormatType("Full"), Abbreviation: MeasurementFormatType("Abbreviation"), Err: fmt.Errorf("invalid MeasurementFormatType"), }
View Source
var MeasurementSystems = measurementSystems{ Metric: MeasurementSystem("Metric"), Imperial: MeasurementSystem("Imperial"), Err: fmt.Errorf("invalid MeasurementSystem"), }
View Source
var MetricUnits = metricUnits{ Tera: MetricUnit("Tera"), Giga: MetricUnit("Giga"), Mega: MetricUnit("Mega"), Kilo: MetricUnit("Kilo"), Hecto: MetricUnit("Hecto"), Deca: MetricUnit("Deca"), Unit: MetricUnit("Unit"), Deci: MetricUnit("Deci"), Centi: MetricUnit("Centi"), Milli: MetricUnit("Milli"), Micro: MetricUnit("Micro"), Nano: MetricUnit("Nano"), Pico: MetricUnit("Pico"), Err: fmt.Errorf("invalid MetricUnit"), }
Functions ¶
This section is empty.
Types ¶
type Dimensions ¶
type Electrical ¶
type ImperialLengthUnit ¶
type ImperialLengthUnit string
func (ImperialLengthUnit) MarshalJSON ¶
func (t ImperialLengthUnit) MarshalJSON() ([]byte, error)
func (ImperialLengthUnit) MarshalYAML ¶
func (t ImperialLengthUnit) MarshalYAML() (interface{}, error)
func (*ImperialLengthUnit) Scan ¶
func (t *ImperialLengthUnit) Scan(value interface{}) error
func (ImperialLengthUnit) String ¶
func (t ImperialLengthUnit) String() string
func (*ImperialLengthUnit) UnmarshalJSON ¶
func (t *ImperialLengthUnit) UnmarshalJSON(data []byte) error
func (*ImperialLengthUnit) UnmarshalYAML ¶
func (t *ImperialLengthUnit) UnmarshalYAML(unmarshal func(interface{}) error) error
type Length ¶
type Length struct { Unit rational.Rational `json:"unit,omitempty"` System MeasurementSystem `json:"system,omitempty"` Format MeasurementFormatType `json:"format,omitempty"` }
type MeasurementFormatType ¶
type MeasurementFormatType string
func (MeasurementFormatType) MarshalJSON ¶
func (t MeasurementFormatType) MarshalJSON() ([]byte, error)
func (MeasurementFormatType) MarshalYAML ¶
func (t MeasurementFormatType) MarshalYAML() (interface{}, error)
func (*MeasurementFormatType) Scan ¶
func (t *MeasurementFormatType) Scan(value interface{}) error
func (MeasurementFormatType) String ¶
func (t MeasurementFormatType) String() string
func (*MeasurementFormatType) UnmarshalJSON ¶
func (t *MeasurementFormatType) UnmarshalJSON(data []byte) error
func (*MeasurementFormatType) UnmarshalYAML ¶
func (t *MeasurementFormatType) UnmarshalYAML(unmarshal func(interface{}) error) error
type MeasurementSystem ¶
type MeasurementSystem string
func (MeasurementSystem) MarshalJSON ¶
func (t MeasurementSystem) MarshalJSON() ([]byte, error)
func (MeasurementSystem) MarshalYAML ¶
func (t MeasurementSystem) MarshalYAML() (interface{}, error)
func (*MeasurementSystem) Scan ¶
func (t *MeasurementSystem) Scan(value interface{}) error
func (MeasurementSystem) String ¶
func (t MeasurementSystem) String() string
func (*MeasurementSystem) UnmarshalJSON ¶
func (t *MeasurementSystem) UnmarshalJSON(data []byte) error
func (*MeasurementSystem) UnmarshalYAML ¶
func (t *MeasurementSystem) UnmarshalYAML(unmarshal func(interface{}) error) error
type MetricUnit ¶
type MetricUnit string
func (MetricUnit) MarshalJSON ¶
func (t MetricUnit) MarshalJSON() ([]byte, error)
func (MetricUnit) MarshalYAML ¶
func (t MetricUnit) MarshalYAML() (interface{}, error)
func (*MetricUnit) Scan ¶
func (t *MetricUnit) Scan(value interface{}) error
func (MetricUnit) String ¶
func (t MetricUnit) String() string
func (*MetricUnit) UnmarshalJSON ¶
func (t *MetricUnit) UnmarshalJSON(data []byte) error
func (*MetricUnit) UnmarshalYAML ¶
func (t *MetricUnit) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.