Package verhist
provides a simple client to retrieve the latest release
versions of Chrome using the version history API.
Can also be used to build the latest user agent for Chrome.
package verhist_test
import (
"context"
"fmt"
"github.com/chromedp/verhist"
)
func Example() {
userAgent, err := verhist.UserAgent(context.Background(), "linux", "stable")
if err != nil {
panic(err)
}
fmt.Println(userAgent)
}