Versions in this module Expand all Collapse all v0 v0.2.1 Mar 1, 2026 v0.2.0 Feb 22, 2026 Changes in this version + type DarwinWebview struct — darwin/amd64 + func (w *DarwinWebview) AddUserScript(js string) error + func (w *DarwinWebview) Close() error + func (w *DarwinWebview) Create(config WindowConfig) error + func (w *DarwinWebview) Destroy() + func (w *DarwinWebview) EnableFileDrop() error + func (w *DarwinWebview) Eval(js string) error + func (w *DarwinWebview) Fullscreen() error + func (w *DarwinWebview) GetPosition() (int, int) + func (w *DarwinWebview) GetSize() (int, int) + func (w *DarwinWebview) LoadHTML(html string) error + func (w *DarwinWebview) LoadURL(url string) error + func (w *DarwinWebview) Maximize() error + func (w *DarwinWebview) Minimize() error + func (w *DarwinWebview) OnMessage(handler func(msg string)) + func (w *DarwinWebview) Restore() error + func (w *DarwinWebview) Run() error + func (w *DarwinWebview) Screenshot() ([]byte, error) + func (w *DarwinWebview) SetColorScheme(scheme string) error + func (w *DarwinWebview) SetContentProtection(enabled bool) error + func (w *DarwinWebview) SetMaxSize(width, height int) error + func (w *DarwinWebview) SetMinSize(width, height int) error + func (w *DarwinWebview) SetPosition(x, y int) error + func (w *DarwinWebview) SetSize(width, height int) error + func (w *DarwinWebview) SetTitle(title string) error + func (w *DarwinWebview) SetVibrancy(style string) error + type LinuxWebview struct — linux/amd64 + func (w *LinuxWebview) AddUserScript(js string) error + func (w *LinuxWebview) Close() error + func (w *LinuxWebview) Create(config WindowConfig) error + func (w *LinuxWebview) Destroy() + func (w *LinuxWebview) EnableFileDrop() error + func (w *LinuxWebview) Eval(js string) error + func (w *LinuxWebview) Fullscreen() error + func (w *LinuxWebview) GetPosition() (int, int) + func (w *LinuxWebview) GetSize() (int, int) + func (w *LinuxWebview) LoadHTML(html string) error + func (w *LinuxWebview) LoadURL(url string) error + func (w *LinuxWebview) Maximize() error + func (w *LinuxWebview) Minimize() error + func (w *LinuxWebview) OnMessage(handler func(msg string)) + func (w *LinuxWebview) Restore() error + func (w *LinuxWebview) Run() error + func (w *LinuxWebview) Screenshot() ([]byte, error) + func (w *LinuxWebview) SetColorScheme(scheme string) error + func (w *LinuxWebview) SetContentProtection(enabled bool) error + func (w *LinuxWebview) SetMaxSize(w2, h int) error + func (w *LinuxWebview) SetMinSize(w2, h int) error + func (w *LinuxWebview) SetPosition(x, y int) error + func (w *LinuxWebview) SetSize(w2, h int) error + func (w *LinuxWebview) SetTitle(title string) error + func (w *LinuxWebview) SetVibrancy(style string) error + type Webview interface + AddUserScript func(js string) error + Close func() error + Create func(config WindowConfig) error + Destroy func() + EnableFileDrop func() error + Eval func(js string) error + Fullscreen func() error + GetPosition func() (int, int) + GetSize func() (int, int) + LoadHTML func(html string) error + LoadURL func(url string) error + Maximize func() error + Minimize func() error + OnMessage func(handler func(msg string)) + Restore func() error + Run func() error + Screenshot func() ([]byte, error) + SetColorScheme func(scheme string) error + SetContentProtection func(enabled bool) error + SetMaxSize func(w, h int) error + SetMinSize func(w, h int) error + SetPosition func(x, y int) error + SetSize func(w, h int) error + SetTitle func(title string) error + SetVibrancy func(style string) error + func New() Webview + type WindowConfig struct + AlwaysOnTop bool + DevTools bool + Frameless bool + Height int + MinHeight int + MinWidth int + Resizable bool + Title string + Transparent bool + Width int