aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.ts
diff options
context:
space:
mode:
authorJeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>2022-11-26 13:56:04 -0500
committerGitHub <noreply@github.com>2022-11-26 13:56:04 -0500
commite13fe4a2f9a100618072855cd87dda9cf32b6524 (patch)
tree06bfc971029439d3e41e038c347ef704a6c64717 /lib/compilers/golang.ts
parenta208c2fe2ed754a07beddc905cde433a2b7bf9f4 (diff)
downloadcompiler-explorer-e13fe4a2f9a100618072855cd87dda9cf32b6524.tar.gz
compiler-explorer-e13fe4a2f9a100618072855cd87dda9cf32b6524.zip
Mg/props ts (#4340)gh-5089
* WIP * Type changes to the property getter * Finish getting types working for properties.ts * Reduce type casts in exec.ts * Format files * Remove old comment Co-authored-by: Matt Godbolt <matt@godbolt.org>
Diffstat (limited to 'lib/compilers/golang.ts')
-rw-r--r--lib/compilers/golang.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/golang.ts b/lib/compilers/golang.ts
index 00ef80d6c..b1de66884 100644
--- a/lib/compilers/golang.ts
+++ b/lib/compilers/golang.ts
@@ -57,9 +57,9 @@ export class GolangCompiler extends BaseCompiler {
constructor(compilerInfo, env) {
super(compilerInfo, env);
- const goroot = this.compilerProps(`compiler.${this.compiler.id}.goroot`);
- const goarch = this.compilerProps(`compiler.${this.compiler.id}.goarch`);
- const goos = this.compilerProps(`compiler.${this.compiler.id}.goos`);
+ const goroot = this.compilerProps<string | undefined>(`compiler.${this.compiler.id}.goroot`);
+ const goarch = this.compilerProps<string | undefined>(`compiler.${this.compiler.id}.goarch`);
+ const goos = this.compilerProps<string | undefined>(`compiler.${this.compiler.id}.goos`);
this.GOENV = {};
if (goroot) {