mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
created 'type Type int' for type.go generation
This commit is contained in:
@ -4,20 +4,22 @@ package slinguist
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: {{ getCommit }}
|
||||
|
||||
type Type int
|
||||
|
||||
const (
|
||||
TypeUnknown = iota
|
||||
TypeUnknown Type = iota
|
||||
TypeData
|
||||
TypeProgramming
|
||||
TypeMarkup
|
||||
TypeProse
|
||||
)
|
||||
|
||||
func GetLanguageType(language string) (langType int) {
|
||||
func GetLanguageType(language string) (langType Type) {
|
||||
langType, _ = languagesType[language]
|
||||
return langType
|
||||
}
|
||||
|
||||
var languagesType = map[string]int{
|
||||
var languagesType = map[string]Type{
|
||||
{{range $language, $type := . -}}
|
||||
"{{ $language }}": {{ $type -}},
|
||||
{{end -}}
|
||||
|
Reference in New Issue
Block a user