mirror of
https://github.com/github/semantic.git
synced 2024-12-18 04:11:48 +03:00
Add Go to Language module
This commit is contained in:
parent
f3c76576e0
commit
339122dc87
@ -27,6 +27,7 @@ data Language =
|
||||
| R
|
||||
| Ruby
|
||||
| Swift
|
||||
| Go
|
||||
deriving (Show)
|
||||
|
||||
-- | Returns a Language based on the file extension (including the ".").
|
||||
@ -37,6 +38,7 @@ languageForType mediaType = case mediaType of
|
||||
".js" -> Just JavaScript
|
||||
".md" -> Just Markdown
|
||||
".rb" -> Just Ruby
|
||||
".go" -> Just Go
|
||||
_ -> Nothing
|
||||
|
||||
termConstructor
|
||||
|
Loading…
Reference in New Issue
Block a user