Versions in this module Expand all Collapse all v2 v2.6.4 Nov 21, 2023 v2.6.3 Nov 21, 2023 v2.6.2 Nov 21, 2023 v2.6.1 Nov 21, 2023 v2.6.0 Nov 21, 2023 Changes in this version + func MergeDefaults(appoptions *App) + type App struct + AlwaysOnTop bool + AssetServer *assetserver.Options + Assets fs.FS + AssetsHandler http.Handler + BackgroundColour *RGBA + Bind []interface{} + CSSDragProperty string + CSSDragValue string + Debug Debug + DisableResize bool + EnableDefaultContextMenu bool + EnableFraudulentWebsiteDetection bool + ErrorFormatter ErrorFormatter + Experimental *Experimental + Frameless bool + Fullscreen bool + Height int + HideWindowOnClose bool + Linux *linux.Options + LogLevel logger.LogLevel + LogLevelProduction logger.LogLevel + Logger logger.Logger + Mac *mac.Options + MaxHeight int + MaxWidth int + Menu *menu.Menu + MinHeight int + MinWidth int + OnBeforeClose func(ctx context.Context) (prevent bool) + OnDomReady func(ctx context.Context) + OnShutdown func(ctx context.Context) + OnStartup func(ctx context.Context) + SingleInstanceLock *SingleInstanceLock + StartHidden bool + Title string + Width int + WindowStartState WindowStartState + Windows *windows.Options + type Debug struct + OpenInspectorOnStartup bool + type ErrorFormatter func(error) any + type Experimental struct + type RGBA struct + A uint8 + B uint8 + G uint8 + R uint8 + func NewRGB(r, g, b uint8) *RGBA + func NewRGBA(r, g, b, a uint8) *RGBA + type SecondInstanceData struct + Args []string + WorkingDirectory string + func NewSecondInstanceData() (*SecondInstanceData, error) + type SingleInstanceLock struct + OnSecondInstanceLaunch func(secondInstanceData SecondInstanceData) + UniqueId string + type WindowStartState int + const Fullscreen + const Maximised + const Minimised + const Normal