Add GetEnvironment() - Fixes #1126

This commit is contained in:
Lea Anthony
2022-02-04 07:52:45 +11:00
parent 0c6864c7ed
commit 082af614ff
4 changed files with 40 additions and 0 deletions
+21
View File
@@ -24,3 +24,24 @@ The Javascript library is available to the frontend via the `window.runtime` map
mode that provides Typescript declarations for the runtime. This should be located in the `wailsjs` directory in your
frontend directory.
### Quit
Go Signature: `LogPrint(ctx context.Context, message string)`
Quits the application.
### Environment
Go Signature: `Enviromnent() EnvironmentInfo`
Returns details of the current environment.
#### EnvironmentInfo
```go
type EnvironmentInfo struct {
BuildType string // Either "production", "debug" or "dev"
}
```