package main
import (
"log"
chromedriverautoinstall "github.com/nicolasrod/chromedriver_autoinstall"
)
func main() {
// Check current Chrome version and if chromedriver does not exists or the version y older
// than the version of Chrome, a new compatible chromedriver will be downloaded as
// ./chromedriver
err := chromedriverautoinstall.InstallChromeDriver("./chromedriver")
if err != nil {
log.Fatal(err)
}
}
Package chromedriver_autoinstall enables an easy way to check the installed version
of Google Chrome/Chromium and installs, if it is not already, a compatible
*chromedriver* binary.