GetLanguageType and Type constants have comments now

type.go comments generated from type.go.tmpl
This commit is contained in:
Manuel Carmona 2017-04-21 10:12:17 +02:00
parent a029941876
commit f45efec5fb
4 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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