Added Version type to base tomo package and stuff
This commit is contained in:
parent
39b8b96513
commit
6acd8be05b
@ -1,16 +1,14 @@
|
|||||||
package nasin
|
package nasin
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
import "fmt"
|
|
||||||
// TODO: possibly fork the official plugin module and add support for other
|
// TODO: possibly fork the official plugin module and add support for other
|
||||||
// operating systems? perhaps enhance the Lookup function with
|
// operating systems? perhaps enhance the Lookup function with
|
||||||
// the generic extract function we have here for extra type safety goodness.
|
// the generic extract function we have here for extra type safety goodness.
|
||||||
import "plugin"
|
import "plugin"
|
||||||
import "strings"
|
|
||||||
import "path/filepath"
|
import "path/filepath"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "git.tebibyte.media/sashakoshka/tomo"
|
||||||
|
|
||||||
type expectsFunc func () (int, int, int)
|
type expectsFunc func () tomo.Version
|
||||||
type nameFunc func () string
|
type nameFunc func () string
|
||||||
type descriptionFunc func () string
|
type descriptionFunc func () string
|
||||||
type backendFactory func () (tomo.Backend, error)
|
type backendFactory func () (tomo.Backend, error)
|
||||||