refactoring: move public constant/types to enry.go

Also re-arrange public API functions to have the same order
as they are in tests.
This commit is contained in:
Alex Bezzubov
2022-11-23 18:46:10 +01:00
parent a1d6d88745
commit a3304aa121
2 changed files with 32 additions and 30 deletions

14
enry.go
View File

@ -14,3 +14,17 @@
package enry // import "github.com/go-enry/go-enry/v2"
//go:generate make code-generate
import "github.com/go-enry/go-enry/v2/data"
// Type represent language's type. Either data, programming, markup, prose, or unknown.
type Type int
// Type's values.
const (
Unknown Type = Type(data.TypeUnknown)
Data = Type(data.TypeData)
Programming = Type(data.TypeProgramming)
Markup = Type(data.TypeMarkup)
Prose = Type(data.TypeProse)
)