{"modulePath":"github.com/GoCodeAlone/rod","version":"v0.116.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package defaults\n\nPackage defaults of commonly used options parsed from environment. Check ResetWith for details.\n\n## Variables\n\n```go\nvar Bin string\n```\nBin is the default of launcher.Launcher.Bin . Option name is \"bin\".\n\n```go\nvar CDP utils.Logger\n```\nCDP is the default of cdp.Client.Logger Option name is \"cdp\".\n\n```go\nvar Devtools bool\n```\nDevtools is the default of launcher.Launcher.Devtools . Option name is \"devtools\".\n\n```go\nvar Dir string\n```\nDir is the default of launcher.Launcher.UserDataDir . Option name is \"dir\".\n\n```go\nvar LockPort int\n```\nLockPort is the default of launcher.Browser.LockPort Option name is \"lock\".\n\n```go\nvar Monitor string\n```\nMonitor is the default of rod.Browser.ServeMonitor . Option name is \"monitor\".\n\n```go\nvar Port string\n```\nPort is the default of launcher.Launcher.RemoteDebuggingPort . Option name is \"port\".\n\n```go\nvar Proxy string\n```\nProxy is the default of launcher.Launcher.Proxy Option name is \"proxy\".\n\n```go\nvar Show bool\n```\nShow is the default of launcher.Launcher.Headless . Option name is \"show\".\n\n```go\nvar Slow time.Duration\n```\nSlow is the default of rod.Browser.SlowMotion . The format is same as [https://golang.org/pkg/time/#ParseDuration](https://golang.org/pkg/time/#ParseDuration) Option name is \"slow\".\n\n```go\nvar Trace bool\n```\nTrace is the default of rod.Browser.Trace . Option name is \"trace\".\n\n```go\nvar URL string\n```\nURL is the default websocket url for remote control a browser. Option name is \"url\".\n\n## Functions\n\n```go\nfunc Reset()\n```\nReset all flags to their init values.\n\n```go\nfunc ResetWith(options string)\n```\nResetWith options and \"-rod\" command line flag. It will be called in an init() , so you don't have to call it manually. It will try to load the cli flag \"-rod\" and then the options, the later override the former. If you want to disable the global cli argument flag, set env DISABLE\\_ROD\\_FLAG. Values are separated by commas, key and value are separated by \"=\". For example:\n\n\tgo run main.go -rod=show\n\tgo run main.go -rod show,trace,slow=1s,monitor\n\tgo run main.go --rod=\"slow=1s,dir=path/has /space,monitor=:9223\"\n\n","path":"github.com/GoCodeAlone/rod/lib/defaults","name":"defaults","synopsis":"Package defaults of commonly used options parsed from environment.","isRedistributable":true}
