annotationResult

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// using prefix `Annotation_` to be able to differ between u and U
	Annotation_v  = AnnotationResult("Spiel wurde in/auf genannte/n Halle/Termin verlegt")
	Annotation_u  = AnnotationResult("Spiel wird in/auf noch unbekannte/n Halle/Termin verlegt")
	Annotation_h  = AnnotationResult("Halle wurde geändert")
	Annotation_t  = AnnotationResult("Heimrecht wurde getauscht")
	Annotation_NH = AnnotationResult("Heimmannschaft nicht angegreten")
	Annotation_NG = AnnotationResult("Gastmannschaft nicht angetreten")
	Annotation_N2 = AnnotationResult("Heim- und Gastmannschaft nicht angetreten")
	Annotation_WH = AnnotationResult("Wertung gegen Heimmannschaft")
	Annotation_WG = AnnotationResult("Wertung gegen Gastmannschaft")
	Annotation_W2 = AnnotationResult("Wertung gegen Heim- und Gastmannschaft")
	Annotation_U  = AnnotationResult("Begegnung wurde umgewertet")
	Annotation_ZH = AnnotationResult("Heimmannschaft zurückgezogen")
	Annotation_ZG = AnnotationResult("Gastmannschaft zurückgezogen")

	// regex of allowed annotation abbreviations
	RegexAnnotations = `^(v|u|h|t|NH|NG|N2|WH|WG|W2|U|ZH|ZG)$`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationResult

type AnnotationResult string

func Parse

func Parse(s string) (AnnotationResult, error)

func Parse converts a given string to a Class it tries to convert different styles of classes to a Class type

func (AnnotationResult) GetAbbreviation

func (ar AnnotationResult) GetAbbreviation() string

func GetAbbreviation returns short name of a annotationResult

func (AnnotationResult) GetName

func (c AnnotationResult) GetName() string

func GetName returns the full name of a annotationResult

Jump to

Keyboard shortcuts

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