package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Dec 9, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ColorCount struct {
Count int `parser:"@Int"`
Color string `parser:"@('red' | 'green' | 'blue')"`
}
type Draw struct {
ColorCounts []*ColorCount `parser:"@@ ( ',' @@ )*"`
}
type Game struct {
Id int `parser:"'Game' @Int ':'"`
Draws []*Draw `parser:"@@ (';' @@)*"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.