diff --git a/internal/entity/parse.go b/internal/entity/parse.go index 24b210a..1be5460 100644 --- a/internal/entity/parse.go +++ b/internal/entity/parse.go @@ -3,11 +3,9 @@ package entity import ( "sort" - "github.com/zu1k/nali/pkg/dbif" - "github.com/zu1k/nali/internal/db" - "github.com/zu1k/nali/internal/re" + "github.com/zu1k/nali/pkg/dbif" ) // ParseLine parse a line into entities diff --git a/pkg/dbif/select.go b/pkg/dbif/select.go deleted file mode 100644 index f146cce..0000000 --- a/pkg/dbif/select.go +++ /dev/null @@ -1,29 +0,0 @@ -package dbif - -func init() { - -} - -type langMap map[string][]DB -type dataTypeMap map[QueryType][]DB - -var ( - lang2DB = make(langMap) - type2DB = make(dataTypeMap) -) - -func RegistLang(lang string, db DB) { - originDBs, found := lang2DB[lang] - if !found { - originDBs = make([]DB, 0, 1) - } - lang2DB[lang] = append(originDBs, db) -} - -func RegistType(typ QueryType, db DB) { - originDBs, found := type2DB[typ] - if !found { - originDBs = make([]DB, 0, 1) - } - type2DB[typ] = append(originDBs, db) -}