1
1
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:
joshvera 2016-10-17 15:30:55 -04:00
parent f3c76576e0
commit 339122dc87

View File

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