Versions in this module Expand all Collapse all v0 v0.78.5 Nov 6, 2020 Changes in this version + const DefaultRevision + const HeaderName + const HostGoogle + const HostTaobao + func MustResolveURL(u string) string + func ResolveURL(u string) (string, error) + type Browser struct + Context context.Context + Dir string + ExecSearchMap map[string][]string + Hosts []string + Lock int + Logger io.Writer + Revision int + func NewBrowser() *Browser + func (lc *Browser) Download() error + func (lc *Browser) ExecPath() string + func (lc *Browser) Get() (string, error) + func (lc *Browser) LookPath() (string, bool) + func (lc *Browser) Open(url string) + type Launcher struct + Flags map[string][]string + func MustNewRemote(remoteURL string) *Launcher + func New() *Launcher + func NewRemote(remoteURL string) (*Launcher, error) + func NewUserMode() *Launcher + func (l *Launcher) Append(name string, values ...string) *Launcher + func (l *Launcher) Bin(path string) *Launcher + func (l *Launcher) Cleanup() + func (l *Launcher) Client() *cdp.Client + func (l *Launcher) Context(ctx context.Context) *Launcher + func (l *Launcher) Delete(name string) *Launcher + func (l *Launcher) Devtools(autoOpenForTabs bool) *Launcher + func (l *Launcher) Env(env ...string) *Launcher + func (l *Launcher) FormatArgs() []string + func (l *Launcher) Get(name string) (string, bool) + func (l *Launcher) GetFlags(name string) ([]string, bool) + func (l *Launcher) Headless(enable bool) *Launcher + func (l *Launcher) JSON() []byte + func (l *Launcher) KeepUserDataDir() *Launcher + func (l *Launcher) Kill() + func (l *Launcher) Launch() (string, error) + func (l *Launcher) Leakless(enable bool) *Launcher + func (l *Launcher) Logger(w io.Writer) *Launcher + func (l *Launcher) MustLaunch() string + func (l *Launcher) PID() int + func (l *Launcher) ProfileDir(dir string) *Launcher + func (l *Launcher) Proxy(host string) *Launcher + func (l *Launcher) RemoteDebuggingPort(port int) *Launcher + func (l *Launcher) Set(name string, values ...string) *Launcher + func (l *Launcher) UserDataDir(dir string) *Launcher + func (l *Launcher) WorkingDir(path string) *Launcher + type RemoteLauncher struct + Logger utils.Logger + func NewRemoteLauncher() *RemoteLauncher + func (p *RemoteLauncher) ServeHTTP(w http.ResponseWriter, r *http.Request) + type URLParser struct + Buffer string + URL chan string + func NewURLParser() *URLParser + func (r *URLParser) Write(p []byte) (n int, err error)