mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
GetLanguageType and Type constants have comments now
type.go comments generated from type.go.tmpl
This commit is contained in:
parent
a029941876
commit
f45efec5fb
@ -7,6 +7,7 @@ package slinguist
|
||||
type Type int
|
||||
|
||||
const (
|
||||
// Language's type. Either data, programming, markup, prose, or unknown.
|
||||
Unknown Type = iota
|
||||
Data
|
||||
Programming
|
||||
@ -14,6 +15,7 @@ const (
|
||||
Prose
|
||||
)
|
||||
|
||||
// GetLanguageType returns the given language's type.
|
||||
func GetLanguageType(language string) (langType Type) {
|
||||
langType, _ = languagesType[language]
|
||||
return langType
|
||||
|
@ -7,6 +7,7 @@ package slinguist
|
||||
type Type int
|
||||
|
||||
const (
|
||||
// Language's type. Either data, programming, markup, prose, or unknown.
|
||||
Unknown Type = iota
|
||||
Data
|
||||
Programming
|
||||
@ -14,6 +15,7 @@ const (
|
||||
Prose
|
||||
)
|
||||
|
||||
// GetLanguageType returns the given language's type.
|
||||
func GetLanguageType(language string) (langType Type) {
|
||||
langType, _ = languagesType[language]
|
||||
return langType
|
||||
|
@ -7,6 +7,7 @@ package slinguist
|
||||
type Type int
|
||||
|
||||
const (
|
||||
// Language's type. Either data, programming, markup, prose, or unknown.
|
||||
Unknown Type = iota
|
||||
Data
|
||||
Programming
|
||||
@ -14,6 +15,7 @@ const (
|
||||
Prose
|
||||
)
|
||||
|
||||
// GetLanguageType returns the given language's type.
|
||||
func GetLanguageType(language string) (langType Type) {
|
||||
langType, _ = languagesType[language]
|
||||
return langType
|
||||
|
2
type.go
2
type.go
@ -7,6 +7,7 @@ package slinguist
|
||||
type Type int
|
||||
|
||||
const (
|
||||
// Language's type. Either data, programming, markup, prose, or unknown.
|
||||
Unknown Type = iota
|
||||
Data
|
||||
Programming
|
||||
@ -14,6 +15,7 @@ const (
|
||||
Prose
|
||||
)
|
||||
|
||||
// GetLanguageType returns the given language's type.
|
||||
func GetLanguageType(language string) (langType Type) {
|
||||
langType, _ = languagesType[language]
|
||||
return langType
|
||||
|
Loading…
Reference in New Issue
Block a user