edge

package
v0.0.0-...-1d9206b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Type     VersionType
	Major    int
	Minor    int
	Build    int
	Revision int
}

Version represents a Microsoft Edge version

func NewVersion

func NewVersion(ver string) (Version, error)

NewVersion returns a parsed version

func (Version) Compare

func (v1 Version) Compare(v2 Version) int

Compare returns an integer comparing two versions. The result will be 0 if v1==v2, -1 if v1 < v2, and +1 if v1 > v2. Chromium-based versions are always newer than EdgeHTML-based versions.

func (Version) String

func (v Version) String() string

String returns the full version string

type VersionType

type VersionType int

VersionType represents the rendering engine type of Microsoft Edge

const (
	// EdgeHTML represents the legacy EdgeHTML-based versions (e.g., "20.10240", "44.17763")
	EdgeHTML VersionType = iota
	// Chromium represents the Chromium-based versions (e.g., "88.0.705.18", "146.0.3856.13")
	Chromium
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL