types

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser int
const (
	Android Browser = iota
	BB
	Chrome
	Edge
	EdgeMobile
	Firefox
	IOSChrome
	IOSSafari
	IE
	IEMobile
	Opera
	OperaMini
	Safari
	FirefoxMobile
	SamsungMobile
)

type Polyfill

type Polyfill struct {
	// contains filtered or unexported fields
}

func NewPolyfill

func NewPolyfill(code string, deps []*Polyfill, support SupportMatrix) *Polyfill

func (Polyfill) Code

func (p Polyfill) Code() io.Reader

func (Polyfill) ForEachDep

func (p Polyfill) ForEachDep(fn func(dep *Polyfill))

func (Polyfill) Needed

func (p Polyfill) Needed(browser Browser, version version.Version) bool

type SupportMatrix

type SupportMatrix struct {
	AndroidNeeded       version.Range
	BBNeeded            version.Range
	ChromeNeeded        version.Range
	EdgeNeeded          version.Range
	EdgeMobileNeeded    version.Range
	FirefoxNeeded       version.Range
	IOSChromeNeeded     version.Range
	IOSSafariNeeded     version.Range
	IENeeded            version.Range
	IEMobileNeeded      version.Range
	OperaNeeded         version.Range
	OperaMiniNeeded     version.Range
	SafariNeeded        version.Range
	FirefoxMobileNeeded version.Range
	SamsungMobileNeeded version.Range
}

Jump to

Keyboard shortcuts

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