Fix: use correct json value for buildtype

This commit is contained in:
Lea Anthony 2022-07-07 21:07:42 +10:00
commit 39cebffa87
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -67,12 +67,14 @@ func Quit(ctx context.Context) {
appFrontend.Quit()
}
// EnvironmentInfo contains information about the environment
type EnvironmentInfo struct {
BuildType string `json:"buildtype"`
BuildType string `json:"buildType"`
Platform string `json:"platform"`
Arch string `json:"arch"`
}
// Environment returns information about the environment
func Environment(ctx context.Context) EnvironmentInfo {
var result EnvironmentInfo
buildType := ctx.Value("buildtype")