ucum

package
v0.0.0-...-6b322a6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestStructures

type TestStructures struct {
	ValidationCases            []XMLValidationCase
	DisplayNameGenerationCases []XMLDisplayNameGenerationCase
	// contains filtered or unexported fields
}

func UnmarshalTerminology

func UnmarshalTerminology(xmlFileName string) (*TestStructures, error)

type XMLConversion

type XMLConversion struct {
	Cases []XMLConversionCase `xml:"case"`
}

type XMLConversionCase

type XMLConversionCase struct {
	Id      string `xml:"id,attr"`
	Value   string `xml:"value,attr"`
	SrcUnit string `xml:"srcUnit,attr"`
	DstUnit string `xml:"dstUnit,attr"`
	Outcome string `xml:"outcome,attr"`
}

type XMLDisplayNameGeneration

type XMLDisplayNameGeneration struct {
	Cases []XMLDisplayNameGenerationCase `xml:"case"`
}

type XMLDisplayNameGenerationCase

type XMLDisplayNameGenerationCase struct {
	Id      string `xml:"id,attr"`
	Unit    string `xml:"unit,attr"`
	Display string `xml:"display,attr"`
}

type XMLMultiplication

type XMLMultiplication struct {
	Cases []XMLMultiplicationCase `xml:"case"`
}

type XMLMultiplicationCase

type XMLMultiplicationCase struct {
	Id   string `xml:"id,attr"`
	V1   string `xml:"v1,attr"`
	U1   string `xml:"u1,attr"`
	V2   string `xml:"v2,attr"`
	U2   string `xml:"u2,attr"`
	VRes string `xml:"vRes,attr"`
	URes string `xml:"uRes,attr"`
}

type XMLUcumTests

type XMLUcumTests struct {
	Validations            XMLValidation            `xml:"validation"`
	DisplayNameGenerations XMLDisplayNameGeneration `xml:"displayNameGeneration"`
	Conversions            XMLConversion            `xml:"conversion"`
	Multiplications        XMLMultiplication        `xml:"multiplication"`
}

type XMLValidation

type XMLValidation struct {
	Cases []XMLValidationCase `xml:"case"`
}

type XMLValidationCase

type XMLValidationCase struct {
	Id     string `xml:"id,attr"`
	Unit   string `xml:"unit,attr"`
	Valid  string `xml:"valid,attr"`
	Reason string `xml:"reason,attr"`
}

Jump to

Keyboard shortcuts

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