Documentation ¶
Index ¶
- Variables
- type Matcher
- type Type
- func (enum Type) EnsureValid() Type
- func (enum Type) Key() string
- func (enum Type) MarshalText() (text []byte, err error)
- func (enum Type) MatchForType(matcher Matcher, replacements map[string]string, name, powerSource string, ...) bool
- func (enum Type) String() string
- func (enum *Type) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Types = []Type{ AllColleges, CollegeName, PowerSource, Name, }
Types holds all possible values.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher interface { Matches(map[string]string, string) bool MatchesList(map[string]string, ...string) bool }
Matcher defines the methods that a spell matcher must implement.
type Type ¶
type Type byte
Type holds the type of a match.
func (Type) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Type) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (Type) MatchForType ¶
func (enum Type) MatchForType(matcher Matcher, replacements map[string]string, name, powerSource string, colleges []string) bool
MatchForType applies the matcher and returns the result.
func (*Type) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.