prefix

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: MIT Imports: 9 Imported by: 0

README

go port of autoprefixer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prefix

func Prefix(s string) string

func UnPrefix

func UnPrefix(s string) string

Types

type Browser

type Browser struct {
	Prefixcache  []string
	PrefixRegexp *regexp.Regexp
	Selected     []string
	Data         map[string]agents.Agent
}

func NewBrowser

func NewBrowser(data map[string]agents.Agent, queries ...string) (*Browser, error)

func (*Browser) IsSelected

func (b *Browser) IsSelected(name string) bool

func (*Browser) Prefix

func (b *Browser) Prefix(name string) string

func (*Browser) Prefixes

func (b *Browser) Prefixes() []string

func (*Browser) WithPrefix

func (b *Browser) WithPrefix(value string) bool

type Prefixes

type Prefixes struct {
	Browsers *Browser
	Data     map[string]data.Data
	Opts     *PrefixesOptions
}

func (*Prefixes) Select

func (p *Prefixes) Select(list map[string]data.Data) *SelectedOptions

type PrefixesOptions

type PrefixesOptions struct {
	FlexBox string
}

type SelectedOptions

type SelectedOptions struct {
	Add    map[string][]string
	Remove map[string][]string
}

Jump to

Keyboard shortcuts

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