Add Golang
This commit is contained in:
parent
0fa062875b
commit
6d283cb3df
4 changed files with 20 additions and 0 deletions
5
docker/go/Dockerfile
Normal file
5
docker/go/Dockerfile
Normal 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
2
docker/go/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "$1" > program.go
|
||||
go run program.go
|
|
@ -31,6 +31,7 @@ class HelpCommand extends Command {
|
|||
'- JavaScript',
|
||||
'- Python',
|
||||
'- Haskell',
|
||||
'- Go',
|
||||
'',
|
||||
'Read the readme for more information: <https://github.com/1Computer1/comp_iler>'
|
||||
]);
|
||||
|
|
12
src/languages/go.js
Normal file
12
src/languages/go.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const Language = require('../struct/Language');
|
||||
|
||||
class Go extends Language {
|
||||
constructor() {
|
||||
super('go', {
|
||||
highlight: 'go',
|
||||
aliases: ['go']
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Go;
|
Loading…
Reference in a new issue