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
Click to show internal directories.
Click to hide internal directories.