aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.js
diff options
context:
space:
mode:
authorAustin Morton <apmorton@users.noreply.github.com>2020-09-25 11:21:30 -0400
committerGitHub <noreply@github.com>2020-09-25 11:21:30 -0400
commitbac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (patch)
tree6e1fc418af36eb61f2d899b4114a1586ed1d0ae6 /lib/compilers/golang.js
parent697c8e9296705b563b1618f73d5630c70a2fa394 (diff)
downloadcompiler-explorer-bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a.tar.gz
compiler-explorer-bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a.zip
Eliminate all dynamic require statements (#2230)
Diffstat (limited to 'lib/compilers/golang.js')
-rw-r--r--lib/compilers/golang.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js
index 9c6761f7b..434e3a693 100644
--- a/lib/compilers/golang.js
+++ b/lib/compilers/golang.js
@@ -43,6 +43,8 @@ const jumpPrefixes = [
];
class GolangCompiler extends BaseCompiler {
+ static get key() { return 'golang'; }
+
convertNewGoL(code) {
const re = /^\s+(0[Xx]?[\dA-Za-z]+)?\s?(\d+)\s*\(([^:]+):(\d+)\)\s*([A-Z]+)(.*)/;
const reUnknown = /^\s+(0[Xx]?[\dA-Za-z]+)?\s?(\d+)\s*\(<unknown line number>\)\s*([A-Z]+)(.*)/;