Versions in this module Expand all Collapse all v0 v0.1.1 Nov 7, 2026 Changes in this version type MenuIcon + func NewMenuIconSVG(s SVGImage, template bool) (*MenuIcon, error) type Page + func (p *Page) GPUProcessID() int + type SVGImage interface + Image func(w, h int, current color.Color) *image.RGBA + Size func() (w, h float32) v0.1.0 Nov 7, 2026 Changes in this version + const CaptureActive + const CaptureCamera + const CaptureDisplay + const CaptureMicrophone + const CaptureMuted + const CaptureNone + const ContextMenuBack + const ContextMenuCopy + const ContextMenuCopyImage + const ContextMenuCopyImageURL + const ContextMenuCopyLink + const ContextMenuCopyMediaURL + const ContextMenuCut + const ContextMenuDelete + const ContextMenuDownloadImage + const ContextMenuDownloadLink + const ContextMenuDownloadMedia + const ContextMenuEmoji + const ContextMenuForward + const ContextMenuInspect + const ContextMenuLookUp + const ContextMenuMediaControls + const ContextMenuMediaFullScreen + const ContextMenuMediaLoop + const ContextMenuOpenFrameInNewWindow + const ContextMenuOpenImageInNewWindow + const ContextMenuOpenLink + const ContextMenuOpenLinkInNewWindow + const ContextMenuOpenMediaInNewWindow + const ContextMenuPaste + const ContextMenuPasteAndMatchStyle + const ContextMenuPictureInPicture + const ContextMenuPrint + const ContextMenuRedo + const ContextMenuReload + const ContextMenuSearchWeb + const ContextMenuSelectAll + const ContextMenuShare + const ContextMenuSpellingGuess + const ContextMenuStop + const ContextMenuUndo + const MaxSecretSize + const MediaNext + const MediaPause + const MediaPlay + const MediaPrevious + const MediaSeek + const MediaStop + const SiteDataAll + const SiteDataCaches + const SiteDataCookies + const SiteDataIndexedDB + const SiteDataLocalStorage + const SiteDataServiceWorkers + const UpstreamRepository + const UpstreamRevision + const UpstreamVersion + const Version + var App = &Application + var Cookies = CookiesModule + var ErrCanceled = errors.New("mygo: canceled") + var ErrChannelClosed = errors.New("mygo: channel closed") + var ErrClipboardChanged = platform.ErrClipboardChanged + var ErrClipboardPersistence = platform.ErrClipboardPersistence + var ErrClipboardReentrant = errors.New("mygo: clipboard access from a clipboard provider") + var ErrDocumentChanged = errors.New("mygo: the file was changed by another application") + var ErrNotificationsDenied = platform.ErrNotificationsDenied + var ErrSecretNotFound = platform.ErrSecretNotFound + var ErrUpdatesDisabled = errors.New("mygo: updates are not enabled for this build") + var ErrWatchLimit = errors.New("mygo: file watch entry limit exceeded") + var GlobalShortcut = &GlobalShortcutModule + var Network = &NetworkModule + var NowPlaying = &NowPlayingModule + var PageA3 = PageSize + var PageA4 = PageSize + var PageA5 = PageSize + var PageLegal = PageSize + var PageLetter = PageSize + var PageTabloid = PageSize + var Power = &PowerModule + var Protocol = &ProtocolModule — darwin/amd64, linux/amd64, windows/amd64 + var Protocol = &ProtocolModule — js/wasm + var Screen = &ScreenModule + var Theme = &ThemeModule + var Updater = &UpdaterModule + func Bind(services ...any) + func BindAs(name string, service any) + func ClearNotifications() + func EvalAs[T any](p *Page, code string) (T, error) + func FileServer(fsys fs.FS) http.Handler — darwin/amd64, linux/amd64, windows/amd64 + func GenerateTypeScript() ([]byte, error) + func IsDev() bool + func NotificationsSupported() bool + func RunOnMain(fn func()) + func SetFrontend(fsys fs.FS) + func StatIdentity(info fs.FileInfo) fs.FileInfo + func Use(ps ...Plugin) + func WebViewAvailable() bool + func WriteTypeScript(path string) error + type AboutPanelOptions struct + ApplicationName string + ApplicationVersion string + Copyright string + Credits string + Version string + type ActivationPolicy string + const ActivationPolicyAccessory + const ActivationPolicyProhibited + const ActivationPolicyRegular + type Application struct + Dock *Dock + JumpList *JumpList + func (a *Application) ActivationPolicy() ActivationPolicy + func (a *Application) AddRecentDocument(path string) error + func (a *Application) ClearBrowsingData() error + func (a *Application) ClearRecentDocuments() error + func (a *Application) Exit(code int) + func (a *Application) Focus() + func (a *Application) Hide() + func (a *Application) IsActive() bool + func (a *Application) IsHidden() bool + func (a *Application) IsPackaged() bool + func (a *Application) IsReady() bool + func (a *Application) IsURLSchemeRegistered(scheme string) bool + func (a *Application) Languages() []string + func (a *Application) Locale() string + func (a *Application) Menu() *Menu + func (a *Application) Name() string + func (a *Application) OnActivate(fn func(hasVisibleWindows bool)) (off func()) + func (a *Application) OnBeforeQuit(fn func(e *QuitEvent)) (off func()) + func (a *Application) OnDidBecomeActive(fn func()) (off func()) + func (a *Application) OnDidResignActive(fn func()) (off func()) + func (a *Application) OnLocaleChanged(fn func(locale string)) (off func()) + func (a *Application) OnNotificationClick(fn func(id string)) (off func()) + func (a *Application) OnOpenFile(fn func(path string)) (off func()) + func (a *Application) OnOpenURL(fn func(url string)) (off func()) + func (a *Application) OnQuit(fn func()) (off func()) + func (a *Application) OnReady(fn func()) (off func()) + func (a *Application) OnRegionChanged(fn func(Region)) (off func()) + func (a *Application) OnSecondInstance(fn func(args []string, workingDir string)) (off func()) + func (a *Application) OnWillQuit(fn func(e *QuitEvent)) (off func()) + func (a *Application) OnWindowAllClosed(fn func()) (off func()) + func (a *Application) OnWindowCreated(fn func(w *Window)) (off func()) + func (a *Application) OpenAtLogin() bool + func (a *Application) Path(name PathName) (string, error) + func (a *Application) PreferredLanguages() []string + func (a *Application) Quit() + func (a *Application) RecentDocuments() []string + func (a *Application) Region() Region + func (a *Application) RegisterURLScheme(scheme string) error + func (a *Application) Relaunch() + func (a *Application) RequestSingleInstanceLock() bool + func (a *Application) Run() error + func (a *Application) SetActivationPolicy(p ActivationPolicy) + func (a *Application) SetBadgeCount(n int) + func (a *Application) SetDMABUFRenderer(r DMABUFRenderer) + func (a *Application) SetLanguages(tags ...string) + func (a *Application) SetLocale(tag string) + func (a *Application) SetMenu(m *Menu) + func (a *Application) SetName(name string) + func (a *Application) SetOpenAtLogin(open bool) error + func (a *Application) SetPath(name PathName, path string) + func (a *Application) SetVersion(v string) + func (a *Application) SetWindowStateStore(s WindowStateStore) + func (a *Application) Show() + func (a *Application) ShowAboutPanel(opts AboutPanelOptions) + func (a *Application) UnregisterURLScheme(scheme string) error + func (a *Application) Version() string + func (a *Application) WasOpenedAtLogin() bool + func (a *Application) WhenReady(fn func()) + type AuthRequest struct + Host string + IsProxy bool + Port int + Realm string + Scheme string + type AuthResponse struct + Password string + Username string + type Autoplay int + const AutoplayAllow + const AutoplayUserGesture + type Autosave int + const AutosaveInPlace + const AutosaveOff + type BackgroundThrottling int + const ThrottlingOff + const ThrottlingOn + type CaptureKind int + type CaptureState int + type CertificateError struct + Certificate []byte + Error string + Host string + URL string + type Channel struct + func (ch *Channel[T]) Close() + func (ch *Channel[T]) Send(v T) error + type ClipboardModule struct + var Clipboard ClipboardModule + func (ClipboardModule) AvailableFormats() []string + func (ClipboardModule) Clear() + func (ClipboardModule) Flush() error + func (ClipboardModule) Formats() []transfer.Format + func (ClipboardModule) Read(formats ...transfer.Format) (transfer.Data, error) + func (ClipboardModule) ReadHTML() string + func (ClipboardModule) ReadImage() []byte + func (ClipboardModule) ReadText() string + func (ClipboardModule) Write(data transfer.Data, options ...ClipboardOptions) error + func (c ClipboardModule) ReadFiles() ([]string, error) + func (c ClipboardModule) ReadFormat(format transfer.Format) ([]byte, error) + func (c ClipboardModule) WriteFiles(paths ...string) error + func (c ClipboardModule) WriteHTML(markup string) + func (c ClipboardModule) WriteImage(data []byte) error + func (c ClipboardModule) WriteText(text string) + type ClipboardOptions struct + OnRelease func() + type CloseEvent struct + Window *Window + type Content interface + AttachContent func(conn *surface.Conn) + type ContentRules struct + func CompileContentRules(id, rules string) (*ContentRules, error) + func (r *ContentRules) ID() string + type ContextMenuEvent struct + Editable bool + FrameURL string + ImageURL string + LinkText string + LinkURL string + MediaURL string + Menu *Menu + SelectionText string + type Cookie struct + Domain string + Expires time.Time + HTTPOnly bool + Name string + Path string + SameSite CookieSameSite + Secure bool + Value string + type CookieFilter struct + Domain string + Name string + Path string + URL string + type CookieSameSite string + const CookieSameSiteLax + const CookieSameSiteNone + const CookieSameSiteStrict + type CookiesModule struct + func (m CookiesModule) Clear() error + func (m CookiesModule) Delete(c Cookie) error + func (m CookiesModule) List(f CookieFilter) ([]Cookie, error) + func (m CookiesModule) Set(c Cookie) error + type DMABUFRenderer string + const DMABUFRendererAuto + const DMABUFRendererOff + const DMABUFRendererOn + type DevTools int + const DevToolsAuto + const DevToolsDisabled + const DevToolsEnabled + type DialogModule struct + var Dialog DialogModule + func (DialogModule) Message(opts MessageOptions) (MessageResult, error) + func (DialogModule) Open(opts OpenDialogOptions) ([]string, error) + func (DialogModule) Save(opts SaveDialogOptions) (string, error) + func (d DialogModule) Error(title, content string) + type Display struct + Bounds Rectangle + ID int64 + Internal bool + Label string + Primary bool + Rotation int + ScaleFactor float64 + WorkArea Rectangle + type Dock struct + func (d *Dock) Badge() string + func (d *Dock) Bounce(critical bool) int + func (d *Dock) CancelBounce(id int) + func (d *Dock) Hide() + func (d *Dock) Menu() *Menu + func (d *Dock) SetBadge(text string) + func (d *Dock) SetIcon(png []byte) error + func (d *Dock) SetMenu(m *Menu) + func (d *Dock) Show() + type Document struct + func (b *Document) Close() + func (b *Document) HasConflict() bool + func (b *Document) IsEdited() bool + func (b *Document) IsReadOnly() bool + func (b *Document) MoveTo(dir string) error + func (b *Document) Name() string + func (b *Document) OnReload(fn func()) (off func()) + func (b *Document) OnStateChange(fn func(DocumentState)) (off func()) + func (b *Document) Path() string + func (b *Document) Rename(name string) error + func (b *Document) Revert() error + func (b *Document) Save() error + func (b *Document) SaveAnyway() error + func (b *Document) SaveAs(path string) error + func (b *Document) State() DocumentState + func (d *Document[T]) Changed() + func (d *Document[T]) Content() T + func (d *Document[T]) Duplicate() *Document[T] + func (d *Document[T]) Set(content T) + func (d *Document[T]) SetEdited(edited bool) + func (d *Document[T]) Window() *Window + type DocumentService struct + func (s *DocumentService[T]) Content(ctx context.Context) (T, error) + func (s *DocumentService[T]) Duplicate(ctx context.Context) error + func (s *DocumentService[T]) MoveTo(ctx context.Context) error + func (s *DocumentService[T]) Rename(ctx context.Context) error + func (s *DocumentService[T]) Revert(ctx context.Context) error + func (s *DocumentService[T]) Save(ctx context.Context) error + func (s *DocumentService[T]) SaveAs(ctx context.Context) error + func (s *DocumentService[T]) SetContent(ctx context.Context, content T) error + func (s *DocumentService[T]) State(ctx context.Context) (DocumentState, error) + type DocumentState struct + Conflict bool + Deleted bool + Edited bool + Name string + Path string + ReadOnly bool + type DocumentType struct + Extensions []string + Name string + type Documents struct + func NewDocuments[T any](opts DocumentsOptions[T]) *Documents[T] + func (ds *Documents[T]) Documents() []*Document[T] + func (ds *Documents[T]) ForWindow(w *Window) *Document[T] + func (ds *Documents[T]) New() *Document[T] + func (ds *Documents[T]) Open(path string) (*Document[T], error) + func (ds *Documents[T]) OpenDialog() ([]*Document[T], error) + func (ds *Documents[T]) Service() *DocumentService[T] + type DocumentsOptions struct + AskOnQuit bool + Autosave Autosave + AutosaveDelay time.Duration + Equal func(a, b T) bool + New func() T + NoUntitled bool + Read func(r io.Reader) (T, error) + Snapshot func(content T) T + Types []DocumentType + Window func(doc *Document[T]) *Window + Write func(w io.Writer, content T) error + type Download struct + Err error + Path string + URL string + type DownloadEvent struct + Path string + SuggestedName string + URL string + type DragOptions = transfer.DragOptions + type DragResult = transfer.Result + type EvalError struct + Message string + func (e *EvalError) Error() string + type Event struct + func NewEvent[T any](name string) *Event[T] + func (e *Event[T]) Broadcast(payload T) error + func (e *Event[T]) Emit(w *Window, payload T) error + func (e *Event[T]) EmitPage(p *Page, payload T) error + func (e *Event[T]) Name() string + type FileDropEvent struct + Paths []string + X int + Y int + type FileEvent struct + IsDir bool + OldPath string + Op FileOp + Path string + type FileFilter struct + Extensions []string + MIMETypes []string + Name string + type FileOp string + const FileCreate + const FileHint + const FileRemove + const FileRename + const FileWrite + type FileWatchOptions struct + Debounce time.Duration + HintsOnly bool + Ignore func(path string, isDir bool) bool + MaxDelay time.Duration + MaxEntries int + Recursive bool + type FileWatcher struct + func WatchFiles(ctx context.Context, path string, opts FileWatchOptions) (*FileWatcher, error) + func (w *FileWatcher) Close() error + func (w *FileWatcher) Done() <-chan struct{} + func (w *FileWatcher) Err() error + func (w *FileWatcher) Next(ctx context.Context) ([]FileEvent, error) + func (w *FileWatcher) Root() string + type FindOptions struct + Backward bool + FindNext bool + MatchCase bool + type FindResult struct + Active int + Matches int + type FlyoutOptions struct + Anchor Rectangle + Content Content + CornerRadius int + FitContent bool + Focusable bool + Gap int + Height int + Hidden bool + MaxHeight int + MaxWidth int + MinHeight int + MinWidth int + Page PageOptions + Parent *Window + Placement Placement + Popover bool + Shadow bool + Tray *Tray + URL string + Vibrancy Vibrancy + Width int + type GlobalShortcutModule struct + func (g *GlobalShortcutModule) IsRegistered(acc string) bool + func (g *GlobalShortcutModule) Register(acc string, fn func()) error + func (g *GlobalShortcutModule) Unregister(acc string) + func (g *GlobalShortcutModule) UnregisterAll() + type InstalledApp struct + ID string + Name string + Path string + type JumpList struct + func (j *JumpList) SetTasks(tasks []JumpListTask) error + func (j *JumpList) Tasks() []JumpListTask + type JumpListTask struct + Args []string + Description string + IconIndex int + IconPath string + Path string + Title string + WorkingDir string + type LoadError struct + Code int + Description string + URL string + func (e *LoadError) Error() string + type Margins struct + Bottom float64 + Left float64 + Right float64 + Top float64 + type MediaCommand uint32 + type MediaPlayer interface + Duration func() time.Duration + Pause func() + Play func() + Playing func() bool + Position func() time.Duration + Seek func(time.Duration) + Stop func() + type Menu struct + func NewMenu(items []*MenuItem) *Menu + func (m *Menu) Append(items ...*MenuItem) + func (m *Menu) Insert(pos int, item *MenuItem) + func (m *Menu) ItemByID(id string) *MenuItem + func (m *Menu) Items() []*MenuItem + func (m *Menu) Popup(win *Window) + func (m *Menu) PopupAt(win *Window, x, y int) + func (m *Menu) Remove(ids ...string) + type MenuIcon struct + func NewMenuIcon(data []byte, template bool) (*MenuIcon, error) + func (m *MenuIcon) PlatformMenuIcon() *platform.MenuIcon + type MenuItem struct + Accelerator string + Checked bool + Click func(item *MenuItem, win *Window) + Disabled bool + Hidden bool + ID string + Icon *MenuIcon + Label string + Role MenuRole + Submenu []*MenuItem + Subtitle string + ToolTip string + Type MenuItemType + func Separator() *MenuItem + func (it *MenuItem) IsChecked() bool + func (it *MenuItem) IsEnabled() bool + func (it *MenuItem) IsVisible() bool + func (it *MenuItem) SetAccelerator(acc string) + func (it *MenuItem) SetChecked(v bool) + func (it *MenuItem) SetEnabled(v bool) + func (it *MenuItem) SetIcon(icon *MenuIcon) + func (it *MenuItem) SetLabel(label string) + func (it *MenuItem) SetSubtitle(subtitle string) + func (it *MenuItem) SetVisible(v bool) + type MenuItemType string + const MenuItemCheckbox + const MenuItemNormal + const MenuItemRadio + const MenuItemSeparator + const MenuItemSubmenu + type MenuRole string + const RoleAbout + const RoleAlignCenter + const RoleAlignLeft + const RoleAlignRight + const RoleAppMenu + const RoleBold + const RoleClose + const RoleCopy + const RoleCut + const RoleDelete + const RoleDuplicate + const RoleEditMenu + const RoleFileMenu + const RoleForceReload + const RoleFormatMenu + const RoleFront + const RoleHelp + const RoleHide + const RoleHideOthers + const RoleItalic + const RoleMinimize + const RoleMoveTo + const RoleNew + const RoleOpen + const RoleOpenRecent + const RolePaste + const RolePasteAndMatchStyle + const RoleQuit + const RoleRedo + const RoleReload + const RoleRename + const RoleResetZoom + const RoleRevert + const RoleSave + const RoleSaveAs + const RoleSelectAll + const RoleServices + const RoleStartSpeaking + const RoleStopSpeaking + const RoleStrikethrough + const RoleToggleDevTools + const RoleToggleFullScreen + const RoleUnderline + const RoleUndo + const RoleUnhide + const RoleViewMenu + const RoleWindow + const RoleWindowMenu + const RoleZoom + const RoleZoomIn + const RoleZoomOut + type MessageOptions struct + Buttons []string + CancelButton int + CheckboxChecked bool + CheckboxLabel string + DefaultButton int + DestructiveButtons []int + Detail string + Message string + Parent *Window + Title string + Type MessageType + type MessageResult struct + Button int + CheckboxChecked bool + type MessageType string + const MessageError + const MessageInfo + const MessageNone + const MessageQuestion + const MessageWarning + type NavigateEvent struct + URL string + UserInitiated bool + type NetworkModule struct + func (n *NetworkModule) OnChanged(fn func(status NetworkStatus)) (off func()) + func (n *NetworkModule) Status() NetworkStatus + type NetworkStatus struct + Metered bool + Online bool + type Notification struct + func NewNotification(opts NotificationOptions) *Notification + func (n *Notification) Close() + func (n *Notification) ID() string + func (n *Notification) OnClick(fn func()) (off func()) + func (n *Notification) Show() error + func (n *Notification) ShowContext(ctx context.Context) error + type NotificationOptions struct + Body string + Group string + ID string + Image []byte + Sender *NotificationSender + Silent bool + Subtitle string + Title string + type NotificationSender struct + Avatar []byte + ID string + Name string + type NowPlayingInfo struct + Album string + Artist string + Artwork []byte + Commands MediaCommand + Duration time.Duration + Position time.Duration + Rate float64 + State PlaybackState + Title string + type NowPlayingModule struct + func (n *NowPlayingModule) Clear() + func (n *NowPlayingModule) Control(p MediaPlayer) (release func()) + func (n *NowPlayingModule) Info() (NowPlayingInfo, bool) + func (n *NowPlayingModule) OnCommand(fn func(cmd MediaCommand, position time.Duration)) (off func()) + func (n *NowPlayingModule) Set(info NowPlayingInfo) + func (n *NowPlayingModule) SetPlayback(state PlaybackState, position time.Duration) + func (n *NowPlayingModule) Sync() + type OpenDialogOptions struct + ButtonLabel string + CreateDirectories bool + DefaultPath string + Directory bool + Filters []FileFilter + Message string + Multiple bool + Parent *Window + ShowHiddenFiles bool + Title string + TreatPackagesAsDirectories bool + type PDFOptions struct + Background bool + Landscape bool + Margins *Margins + PageSize PageSize + type Page struct + func CallerPage(ctx context.Context) *Page + func (p *Page) CanGoBack() bool + func (p *Page) CanGoForward() bool + func (p *Page) CaptureState(kind CaptureKind) CaptureState + func (p *Page) CloseDevTools() + func (p *Page) Eval(code string) (any, error) + func (p *Page) EvalContext(ctx context.Context, code string) (any, error) + func (p *Page) FindInPage(text string, opts FindOptions) (FindResult, error) + func (p *Page) GoBack() + func (p *Page) GoForward() + func (p *Page) IsAudible() bool + func (p *Page) IsAudioMuted() bool + func (p *Page) IsDevToolsOpened() bool + func (p *Page) IsLoading() bool + func (p *Page) IsPictureInPictureActive() bool + func (p *Page) LoadFile(path string) error + func (p *Page) LoadHTML(html, baseURL string) + func (p *Page) LoadURL(rawURL string) error + func (p *Page) OnAudibleChanged(fn func(audible bool)) (off func()) + func (p *Page) OnCaptureStateChanged(fn func(kind CaptureKind, state CaptureState)) (off func()) + func (p *Page) OnContextMenu(fn func(e *ContextMenuEvent)) (off func()) + func (p *Page) OnDOMReady(fn func()) (off func()) + func (p *Page) OnDidFailLoad(fn func(err *LoadError)) (off func()) + func (p *Page) OnDidFinishLoad(fn func()) (off func()) + func (p *Page) OnDidNavigate(fn func(url string)) (off func()) + func (p *Page) OnDownloadDone(fn func(d *Download)) (off func()) + func (p *Page) OnPageTitleUpdated(fn func(e *TitleEvent)) (off func()) + func (p *Page) OnRenderProcessGone(fn func(reason string)) (off func()) + func (p *Page) OnThemeColorChanged(fn func(c color.NRGBA, ok bool)) (off func()) + func (p *Page) OnWillDownload(fn func(e *DownloadEvent)) (off func()) + func (p *Page) OnWillNavigate(fn func(e *NavigateEvent)) (off func()) + func (p *Page) OpenDevTools() + func (p *Page) Print() + func (p *Page) PrintToPDF(opts PDFOptions) ([]byte, error) + func (p *Page) ProcessID() int + func (p *Page) Reload() + func (p *Page) ReloadIgnoringCache() + func (p *Page) SessionState() ([]byte, error) + func (p *Page) SetAudioMuted(muted bool) + func (p *Page) SetAuthHandler(fn func(req AuthRequest) AuthResponse) + func (p *Page) SetCaptureState(kind CaptureKind, state CaptureState) + func (p *Page) SetCertificateErrorHandler(fn func(e CertificateError) bool) + func (p *Page) SetContentRules(rules ...*ContentRules) + func (p *Page) SetPermissionHandler(fn func(req PermissionRequest) bool) + func (p *Page) SetUserAgent(ua string) + func (p *Page) SetWindowOpenHandler(fn func(req WindowOpenRequest) *WindowOptions) + func (p *Page) SetZoomFactor(f float64) + func (p *Page) Stop() + func (p *Page) StopFindInPage() + func (p *Page) ThemeColor() (c color.NRGBA, ok bool) + func (p *Page) ToggleDevTools() + func (p *Page) TogglePictureInPicture() + func (p *Page) URL() string + func (p *Page) UserAgent() string + func (p *Page) WebView() *WebView + func (p *Page) Window() *Window + func (p *Page) ZoomFactor() float64 + type PageOptions struct + Autoplay Autoplay + BackgroundThrottling BackgroundThrottling + ContentRules []*ContentRules + DevTools DevTools + PictureInPicture bool + PinchZoom bool + PreloadAllFrames bool + PreloadScript string + SafariTabFocus bool + Session *Session + SessionState []byte + SwipeNavigation bool + TrustedOrigins []string + Untrusted bool + UserAgent string + UserAgentSuffix string + ZoomFactor float64 + type PageSize struct + Height float64 + Width float64 + type PathName string + const PathAppData + const PathCache + const PathDesktop + const PathDocuments + const PathDownloads + const PathExe + const PathHome + const PathLogs + const PathMusic + const PathPictures + const PathResources + const PathTemp + const PathUserData + const PathVideos + type Permission string + const PermissionCamera + const PermissionGeolocation + const PermissionMicrophone + const PermissionNotifications + type PermissionRequest struct + Origin string + Permissions []Permission + type Placement string + const PlacementBottom + const PlacementBottomEnd + const PlacementBottomStart + const PlacementLeft + const PlacementLeftEnd + const PlacementLeftStart + const PlacementRight + const PlacementRightEnd + const PlacementRightStart + const PlacementTop + const PlacementTopEnd + const PlacementTopStart + type PlaybackState int + const PlaybackPaused + const PlaybackPlaying + const PlaybackStopped + type Plugin struct + Name string + Service any + Setup func() error + type Point struct + X int + Y int + type PowerModule struct + func (p *PowerModule) IdleTime() time.Duration + func (p *PowerModule) IsOnBattery() bool + func (p *PowerModule) KeepAwake(reason string, display bool) (release func()) + func (p *PowerModule) OnLockScreen(fn func()) (off func()) + func (p *PowerModule) OnResume(fn func()) (off func()) + func (p *PowerModule) OnSuspend(fn func()) (off func()) + func (p *PowerModule) OnUnlockScreen(fn func()) (off func()) + type Preventable struct + func (p *Preventable) DefaultPrevented() bool + func (p *Preventable) PreventDefault() + type ProgressBar struct + State ProgressState + Value float64 + type ProgressState string + const ProgressError + const ProgressIndeterminate + const ProgressNone + const ProgressNormal + const ProgressPaused + type ProtocolModule struct + func (p *ProtocolModule) Handle(scheme string, handler http.Handler) error + func (p *ProtocolModule) HandleFunc(scheme string, fn func(http.ResponseWriter, *http.Request)) error + func (p *ProtocolModule) IsHandled(scheme string) bool + func (p *ProtocolModule) Unhandle(scheme string) + type QuitEvent struct + type Rectangle struct + Height int + Width int + X int + Y int + type Region = i18n.Region + type SaveDialogOptions struct + ButtonLabel string + CreateDirectories bool + DefaultPath string + Filters []FileFilter + Message string + NameFieldLabel string + Parent *Window + ShowHiddenFiles bool + Title string + TreatPackagesAsDirectories bool + type ScreenModule struct + func (s *ScreenModule) CursorScreenPoint() Point + func (s *ScreenModule) DisplayMatching(r Rectangle) Display + func (s *ScreenModule) DisplayNearestPoint(p Point) Display + func (s *ScreenModule) Displays() []Display + func (s *ScreenModule) OnDisplaysChanged(fn func()) (off func()) + func (s *ScreenModule) PrimaryDisplay() Display + type SecretsModule struct + var Secrets SecretsModule + func (SecretsModule) Service(service string) SecretsModule + func (s SecretsModule) Delete(key string) error + func (s SecretsModule) Get(key string) ([]byte, error) + func (s SecretsModule) Set(key string, value []byte) error + type Session struct + Cookies CookiesModule + func DefaultSession() *Session + func NewEphemeralSession() *Session + func NewSession(name string) *Session + func (s *Session) ClearData(types SiteData) error + func (s *Session) IsEphemeral() bool + func (s *Session) Name() string + type ShellModule struct + var Shell ShellModule + func (ShellModule) Beep() + func (ShellModule) FileIcon(path string, size int) ([]byte, error) + func (ShellModule) InstalledApps() ([]InstalledApp, error) + func (ShellModule) LaunchApp(app InstalledApp) error + func (ShellModule) OpenExternal(url string) error + func (ShellModule) OpenPath(path string) error + func (ShellModule) ShowItemInFolder(path string) + func (ShellModule) TrashItem(path string) error + func (ShellModule) TypeIcon(ext string, size int) ([]byte, error) + type SiteData uint + type Size struct + Height int + Width int + type ThemeModule struct + func (t *ThemeModule) IsDark() bool + func (t *ThemeModule) OnUpdated(fn func()) (off func()) + func (t *ThemeModule) Preferences() ThemePreferences + func (t *ThemeModule) SetGTKCSS(css string) error + func (t *ThemeModule) SetSource(s ThemeSource) + func (t *ThemeModule) Source() ThemeSource + func (t *ThemeModule) WindowButtons() WindowButtons + type ThemePreferences struct + Accent color.NRGBA + HighContrast bool + ReduceMotion bool + ReduceTransparency bool + TextScale float64 + func (p *ThemePreferences) UnmarshalJSON(b []byte) error + func (p ThemePreferences) MarshalJSON() ([]byte, error) + type ThemeSource string + const ThemeDark + const ThemeLight + const ThemeSystem + type TitleBarStyle string + const TitleBarDefault + const TitleBarHidden + const TitleBarHiddenInset + type TitleEvent struct + Title string + type Tray struct + func NewTray(opts TrayOptions) (*Tray, error) + func (t *Tray) Bounds() Rectangle + func (t *Tray) Dark() bool + func (t *Tray) Destroy() + func (t *Tray) OnAppearanceChange(fn func()) (off func()) + func (t *Tray) OnClick(fn func()) func() + func (t *Tray) OnRightClick(fn func()) (off func()) + func (t *Tray) PopUpMenu() + func (t *Tray) SetIcon(png []byte, template bool) error + func (t *Tray) SetMenu(m *Menu) + func (t *Tray) SetTitle(title string) + func (t *Tray) SetToolTip(tip string) + type TrayOptions struct + ID string + Icon []byte + IconIsTemplate bool + Menu *Menu + Title string + ToolTip string + type Update struct + Date time.Time + Notes string + Version string + func (up *Update) Install(ctx context.Context, progress func(downloaded, total int64)) error + type UpdateSource interface + Manifest func(ctx context.Context, prereleases bool) (io.ReadCloser, error) + Open func(ctx context.Context, url string) (io.ReadCloser, error) + type UpdaterModule struct + func (u *UpdaterModule) Check(ctx context.Context) (*Update, error) + func (u *UpdaterModule) Enabled() bool + func (u *UpdaterModule) Prereleases() bool + func (u *UpdaterModule) SetPrereleases(on bool) + func (u *UpdaterModule) SetSource(s UpdateSource) + type Vibrancy string + const VibrancyAcrylic + const VibrancyContent + const VibrancyFullScreenUI + const VibrancyGlass + const VibrancyGlassClear + const VibrancyHUD + const VibrancyHeader + const VibrancyMenu + const VibrancyMica + const VibrancyNone + const VibrancyPopover + const VibrancySelection + const VibrancySheet + const VibrancySidebar + const VibrancyTabbed + const VibrancyTitlebar + const VibrancyTooltip + const VibrancyUnderPage + const VibrancyUnderWindow + const VibrancyWindow + type WebView struct + func (v *WebView) CapturePage() ([]byte, error) + func (v *WebView) Destroy() + func (v *WebView) Focus() + func (v *WebView) IsDestroyed() bool + func (v *WebView) Page() *Page + func (v *WebView) SetBackgroundColor(color string) error + func (v *WebView) SurfaceWebView(conn *surface.Conn) platform.WebView + func (v *WebView) Window() *Window + type WebViewOptions struct + BackgroundColor string + Page PageOptions + ScrollToContainer bool + Transparent bool + URL string + type Window struct + func CallerWindow(ctx context.Context) *Window + func FocusedWindow() *Window + func NewFlyout(opts FlyoutOptions) *Window + func NewWindow(opts WindowOptions) *Window + func WindowByID(id int) *Window + func Windows() []*Window + func (w *Window) Blur() + func (w *Window) Bounds() Rectangle + func (w *Window) CancelDataDrag() + func (w *Window) CapturePage() ([]byte, error) + func (w *Window) Center() + func (w *Window) Close() + func (w *Window) ContentBounds() Rectangle + func (w *Window) ContentSize() (width, height int) + func (w *Window) Destroy() + func (w *Window) FlashFrame(flash bool) + func (w *Window) Focus() + func (w *Window) HasShadow() bool + func (w *Window) Hide() + func (w *Window) ID() int + func (w *Window) Invalidate() + func (w *Window) IsAlwaysOnTop() bool + func (w *Window) IsClosable() bool + func (w *Window) IsDestroyed() bool + func (w *Window) IsDocumentEdited() bool + func (w *Window) IsFlyout() bool + func (w *Window) IsFocused() bool + func (w *Window) IsFullScreen() bool + func (w *Window) IsMaximizable() bool + func (w *Window) IsMaximized() bool + func (w *Window) IsMinimizable() bool + func (w *Window) IsMinimized() bool + func (w *Window) IsMovable() bool + func (w *Window) IsPanel() bool + func (w *Window) IsResizable() bool + func (w *Window) IsVisible() bool + func (w *Window) Maximize() + func (w *Window) Minimize() + func (w *Window) NativeHandle() uintptr + func (w *Window) NewWebView(opts WebViewOptions) (*WebView, error) + func (w *Window) OnBlur(fn func()) (off func()) + func (w *Window) OnClose(fn func(e *CloseEvent)) (off func()) + func (w *Window) OnClosed(fn func()) (off func()) + func (w *Window) OnEnterFullScreen(fn func()) (off func()) + func (w *Window) OnFileDrop(fn func(e *FileDropEvent)) (off func()) + func (w *Window) OnFocus(fn func()) (off func()) + func (w *Window) OnHide(fn func()) (off func()) + func (w *Window) OnLeaveFullScreen(fn func()) (off func()) + func (w *Window) OnMaximize(fn func()) (off func()) + func (w *Window) OnMinimize(fn func()) (off func()) + func (w *Window) OnMove(fn func()) (off func()) + func (w *Window) OnReadyToShow(fn func()) (off func()) + func (w *Window) OnResize(fn func()) (off func()) + func (w *Window) OnRestore(fn func()) (off func()) + func (w *Window) OnShow(fn func()) (off func()) + func (w *Window) OnUnmaximize(fn func()) (off func()) + func (w *Window) Opacity() float64 + func (w *Window) Page() *Page + func (w *Window) Parent() *Window + func (w *Window) Position() (x, y int) + func (w *Window) RepresentedFile() string + func (w *Window) Restore() + func (w *Window) SetActiveAppearance(v bool) + func (w *Window) SetAlwaysOnTop(v bool) + func (w *Window) SetAnchor(anchor Rectangle) + func (w *Window) SetAutoHideMenuBar(v bool) + func (w *Window) SetBackgroundColor(color string) error + func (w *Window) SetBounds(r Rectangle) + func (w *Window) SetClosable(v bool) + func (w *Window) SetContentBounds(r Rectangle) + func (w *Window) SetContentProtection(v bool) + func (w *Window) SetContentSize(width, height int) + func (w *Window) SetDocumentEdited(edited bool) + func (w *Window) SetFullScreen(v bool) + func (w *Window) SetHasShadow(v bool) + func (w *Window) SetIcon(png []byte) error + func (w *Window) SetIgnoreMouseEvents(v bool) + func (w *Window) SetMaximizable(v bool) + func (w *Window) SetMaximumSize(width, height int) + func (w *Window) SetMenu(m *Menu) + func (w *Window) SetMinimizable(v bool) + func (w *Window) SetMinimumSize(width, height int) + func (w *Window) SetMovable(v bool) + func (w *Window) SetOpacity(v float64) + func (w *Window) SetPosition(x, y int) + func (w *Window) SetProgressBar(p ProgressBar) + func (w *Window) SetRepresentedFile(path string) + func (w *Window) SetResizable(v bool) + func (w *Window) SetSize(width, height int) + func (w *Window) SetSkipTaskbar(v bool) + func (w *Window) SetTitle(title string) + func (w *Window) SetVibrancy(v Vibrancy) + func (w *Window) SetVibrancyTint(color string) error + func (w *Window) SetVisibleOnAllWorkspaces(v bool) + func (w *Window) SetWindowButtonsTheme(s ThemeSource) + func (w *Window) Show() + func (w *Window) ShowInactive() + func (w *Window) Size() (width, height int) + func (w *Window) StartDataDrag(data transfer.Data, options DragOptions) error + func (w *Window) Title() string + func (w *Window) ToggleFullScreen() + func (w *Window) ToggleMaximize() + func (w *Window) Unmaximize() + func (w *Window) Update(fn func()) + type WindowButtons struct + End []string + Start []string + func (b WindowButtons) Empty() bool + func (b WindowButtons) Has(button string) bool + type WindowOpenRequest struct + FrameName string + Height int + URL string + UserInitiated bool + Width int + type WindowOptions struct + AlwaysOnTop bool + AutoHideMenuBar bool + BackgroundColor string + Content Content + CornerRadius int + DisableClose bool + DisableFullScreen bool + DisableMaximize bool + DisableMinimize bool + DisableMove bool + DisableResize bool + DisableShadow bool + FitContent bool + Frameless bool + FullScreen bool + Height int + Hidden bool + HideWindowButtons bool + MaxHeight int + MaxWidth int + Maximized bool + MinHeight int + MinWidth int + Modal bool + Opacity float64 + Page PageOptions + Panel bool + Parent *Window + SkipTaskbar bool + StateKey string + Title string + TitleBarHeight int + TitleBarStyle TitleBarStyle + TrafficLightPosition *Point + Transparent bool + URL string + UseContentSize bool + Vibrancy Vibrancy + VibrancyTint string + Width int + X int + Y int + type WindowState struct + FullScreen bool + Height int + Maximized bool + PixelHeight int + PixelWidth int + PixelX int + PixelY int + Width int + X int + Y int + type WindowStateStore interface + LoadWindowStates func() (map[string]WindowState, error) + SaveWindowStates func(states map[string]WindowState) error