5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 06:12:02 +08:00
wails/v3/internal/operatingsystem/os.go
2023-08-18 10:34:32 +10:00

24 lines
413 B
Go

package operatingsystem
// OS contains information about the operating system
type OS struct {
ID string
Name string
Version string
Branding string
}
func (o *OS) AsLogSlice() []any {
return []any{
"ID", o.ID,
"Name", o.Name,
"Version", o.Version,
"Branding", o.Branding,
}
}
// Info retrieves information about the current platform
func Info() (*OS, error) {
return platformInfo()
}