mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 08:30:07 -03:00
created 'type Type int' for type.go generation
This commit is contained in:
parent
b277944b2a
commit
c08b85120d
@ -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 -}}
|
||||
|
@ -4,20 +4,22 @@ package slinguist
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: fe8b44ab8a225b1ffa75b983b916ea22fee5b6f7
|
||||
|
||||
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{
|
||||
"Scaml": TypeMarkup,
|
||||
"Scheme": TypeProgramming,
|
||||
"Scilab": TypeProgramming,
|
||||
|
@ -4,20 +4,22 @@ package slinguist
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: fe8b44ab8a225b1ffa75b983b916ea22fee5b6f7
|
||||
|
||||
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{
|
||||
"Scaml": TypeMarkup,
|
||||
"Scheme": TypeProgramming,
|
||||
"Scilab": TypeProgramming,
|
||||
|
@ -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 -}}
|
||||
|
8
type.go
8
type.go
@ -4,20 +4,22 @@ package slinguist
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: dae33dc2b20cddc85d1300435c3be7118a7115a9
|
||||
|
||||
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{
|
||||
"1C Enterprise": TypeProgramming,
|
||||
"ABAP": TypeProgramming,
|
||||
"ABNF": TypeData,
|
||||
|
Loading…
x
Reference in New Issue
Block a user