1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 12:21:57 +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 | R
| Ruby | Ruby
| Swift | Swift
| Go
deriving (Show) deriving (Show)
-- | Returns a Language based on the file extension (including the "."). -- | Returns a Language based on the file extension (including the ".").
@ -37,6 +38,7 @@ languageForType mediaType = case mediaType of
".js" -> Just JavaScript ".js" -> Just JavaScript
".md" -> Just Markdown ".md" -> Just Markdown
".rb" -> Just Ruby ".rb" -> Just Ruby
".go" -> Just Go
_ -> Nothing _ -> Nothing
termConstructor termConstructor