diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-04-12 17:53:27 -0230 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-04-12 17:53:27 -0230 |
| commit | 6b8696836d07ee02509a02f56580caeef63b068b (patch) | |
| tree | a40b8a6728a70f23630959865c2cddd4cb3fa436 /main.go | |
| parent | 4ed36abe10e629322078a440ae7071132c65da7a (diff) | |
| download | volute-6b8696836d07ee02509a02f56580caeef63b068b.zip | |
store compressor data in toml format
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -134,9 +134,14 @@ func setCompressor(c compressor.Compressor) { } func init() { - c, ok := compressor.Compressors()["Garrett"]["G"]["25-660"] + manufacturer := "garrett" + series := "g" + model := "25-660" + c, ok := compressor.Compressors()[manufacturer][series][model] if !ok { - fmt.Println("Garrett G25-660 not in compressor.Compressors().") + fmt.Printf("compressor.Compressors()[\"%s\"][\"%s\"][\"%s\"] does not exist.\n", + manufacturer, series, model, + ) os.Exit(1) } |