fancl 67accdedf4 init project hace 2 años
..
.gitignore 67accdedf4 init project hace 2 años
.travis.yml 67accdedf4 init project hace 2 años
LICENSE 67accdedf4 init project hace 2 años
README.md 67accdedf4 init project hace 2 años
at_parser.go 67accdedf4 init project hace 2 años
block_parser.go 67accdedf4 init project hace 2 años
doc.go 67accdedf4 init project hace 2 años
parser.go 67accdedf4 init project hace 2 años
rule.go 67accdedf4 init project hace 2 años
selector_parser.go 67accdedf4 init project hace 2 años
skip_rule.go 67accdedf4 init project hace 2 años
styledeclaration.go 67accdedf4 init project hace 2 años
stylerule.go 67accdedf4 init project hace 2 años
stylesheet.go 67accdedf4 init project hace 2 años
value.go 67accdedf4 init project hace 2 años

README.md

css

Package css is for parsing css stylesheet.

Document

GoDoc

example

import (
    "github.com/vanng822/css"
    "fmt"
)
func main() {
    csstext := "td {width: 100px; height: 100px;}"
    ss := css.Parse(csstext)
    rules := ss.GetCSSRuleList()
    for _, rule := range rules {
        fmt.Println(rule.Style.Selector.Text())
        fmt.Println(rule.Style.Styles)
    }
}