Documentation
¶
Index ¶
- Constants
- Variables
- func CompareSemver(a, b string) bool
- func Get(c Cache) ([]byte, error)
- func GetDepVersion(typ, ver string, deps, refs Cache) (string, error)
- func GetLatestVersion(index Cache) (string, error)
- func GetRefs(c Cache) (map[string]Ref, error)
- func MakeSemver(v string) *semver.Version
- type Cache
- type Ref
Constants ¶
View Source
const ( ChromiumBase = "https://chromium.googlesource.com/chromium/src" ChromiumDeps = ChromiumBase + "/+/%s/DEPS" ChromiumURL = ChromiumBase + "/+/%s/third_party/blink/public/devtools_protocol/browser_protocol.pdl" V8Base = "https://chromium.googlesource.com/v8/v8" V8URL = V8Base + "/+/%s/include/js_protocol.pdl" // v8 <= 7.6.303.13 uses this path. left for posterity. V8URLOld = V8Base + "/+/%s/src/inspector/js_protocol.pdl" // chromium < 80.0.3978.0 uses this path. left for posterity. ChromiumURLOld = ChromiumBase + "/+/%s/third_party/blink/renderer/core/inspector/browser_protocol.pdl" )
Variables ¶
View Source
var Logf = log.Printf
Logf is a shared logging function.
View Source
var VerRE = regexp.MustCompile(`^[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?$`)
VerRE is a regular expression for matching version numbers.
Functions ¶
func CompareSemver ¶
CompareSemver returns true if the semver of a is less than the semver of b.
func Get ¶
Get retrieves a file from disk or from the remote URL, optionally base64 decoding it and writing it to disk.
func GetDepVersion ¶
GetDepVersion version retrieves the v8 version used for the browser version.
func GetLatestVersion ¶
GetLatestVersion determines the latest tag version listed on the gitiles html page.
Types ¶
Click to show internal directories.
Click to hide internal directories.