Add Golang

This commit is contained in:
Dim 2019-03-13 00:37:09 -04:00 committed by 1Computer1
parent 0fa062875b
commit 6d283cb3df
4 changed files with 20 additions and 0 deletions

5
docker/go/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM golang:alpine
LABEL author="1Computer1"
COPY run.sh /var/run/
WORKDIR /var/ws

2
docker/go/run.sh Normal file
View file

@ -0,0 +1,2 @@
echo "$1" > program.go
go run program.go

View file

@ -31,6 +31,7 @@ class HelpCommand extends Command {
'- JavaScript', '- JavaScript',
'- Python', '- Python',
'- Haskell', '- Haskell',
'- Go',
'', '',
'Read the readme for more information: <https://github.com/1Computer1/comp_iler>' 'Read the readme for more information: <https://github.com/1Computer1/comp_iler>'
]); ]);

12
src/languages/go.js Normal file
View file

@ -0,0 +1,12 @@
const Language = require('../struct/Language');
class Go extends Language {
constructor() {
super('go', {
highlight: 'go',
aliases: ['go']
});
}
}
module.exports = Go;