22 lines
268 B
Go
22 lines
268 B
Go
package neon
|
|
|
|
type Condition byte
|
|
|
|
const (
|
|
Always Condition = iota
|
|
IfTrue
|
|
IfFalse
|
|
Randomly
|
|
)
|
|
|
|
var conditionStrings = [...]string{
|
|
Always: " ",
|
|
IfTrue: "+",
|
|
IfFalse: "-",
|
|
Randomly: "?",
|
|
}
|
|
|
|
func (c Condition) String() string {
|
|
return conditionStrings[c]
|
|
}
|