-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package textables | ||
|
||
import "github.com/sirupsen/logrus" | ||
|
||
type GroupInfo struct { | ||
Group string | ||
Score int | ||
Dependencies []string | ||
} | ||
|
||
type Table interface { | ||
AddGroup0(info GroupInfo) | ||
AddGroup(info GroupInfo) | ||
AddLastGroup(info GroupInfo) | ||
|
||
String() string | ||
} | ||
|
||
func GetTexTable(tableTyp string, cntVars int) Table { //nolint:ireturn | ||
logrus.WithFields(logrus.Fields{"type": tableTyp, "vars": cntVars}).Info("select textable") | ||
|
||
switch tableTyp { | ||
case UniversalTag: | ||
return &UniversalTable{} | ||
default: | ||
return nil | ||
} | ||
} |
22 changes: 13 additions & 9 deletions
22
polygon/valeria/universal_table.go → polygon/valeria/textables/universal.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters