Clean up Linkage definition
A linkage is a direction/value pair, and that's all. A set of these can have helper functions and the like. Cleans up some assumptions of functionality that isn't useful (yet).
This commit is contained in:
parent
3a7da9f2a0
commit
d639aa3205
3 changed files with 11 additions and 22 deletions
|
|
@ -38,10 +38,12 @@ type Tagger struct {
|
|||
// Linkage is a union type representing a set of values established for a given
|
||||
// quad direction.
|
||||
type Linkage struct {
|
||||
Dir quad.Direction
|
||||
Values []Value
|
||||
Dir quad.Direction
|
||||
Value Value
|
||||
}
|
||||
|
||||
// TODO(barakmich): Helper functions as needed, eg, ValuesForDirection(quad.Direction) []Value
|
||||
|
||||
// Add a tag to the iterator.
|
||||
func (t *Tagger) Add(tag string) {
|
||||
t.tags = append(t.tags, tag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue