Open#
func (host *WebHost) Open(config WebViewConfig) (*WebView, error)Open opens a page. It fails with ErrUnsupported when the platform cannot host pages or the system has no web engine installed.
API 文档由 Go 源码生成,内容为英文。
type WebHost struct {
// OnReady runs once on the window's thread when the window exists and Open can be used.
OnReady func()
// repaint asks for a paint: a page that opened or closed is declared (or not) by the next one.
}WebHost opens pages in one window. The zero value is ready to put in Config.Web.
Open#func (host *WebHost) Open(config WebViewConfig) (*WebView, error)Open opens a page. It fails with ErrUnsupported when the platform cannot host pages or the system has no web engine installed.