Documentation ¶
Index ¶
- func Parse(text string) (*css.Stylesheet, error)
- func ParseDeclarations(text string) ([]*css.Declaration, error)
- type Parser
- func (parser *Parser) ParseDeclaration() (*css.Declaration, error)
- func (parser *Parser) ParseDeclarations() ([]*css.Declaration, error)
- func (parser *Parser) ParseRule() (*css.Rule, error)
- func (parser *Parser) ParseRules() ([]*css.Rule, error)
- func (parser *Parser) ParseStylesheet() (*css.Stylesheet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDeclarations ¶
func ParseDeclarations(text string) ([]*css.Declaration, error)
ParseDeclarations parses CSS declarations
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a CSS parser
func (*Parser) ParseDeclaration ¶
func (parser *Parser) ParseDeclaration() (*css.Declaration, error)
ParseDeclaration parses a declaration
func (*Parser) ParseDeclarations ¶
func (parser *Parser) ParseDeclarations() ([]*css.Declaration, error)
ParseDeclarations parses a list of declarations
func (*Parser) ParseRules ¶
ParseRules parses a list of rules
func (*Parser) ParseStylesheet ¶
func (parser *Parser) ParseStylesheet() (*css.Stylesheet, error)
ParseStylesheet parses a stylesheet
Click to show internal directories.
Click to hide internal directories.