fancl 67accdedf4 init project há 2 anos atrás
..
.gitignore 67accdedf4 init project há 2 anos atrás
.travis.yml 67accdedf4 init project há 2 anos atrás
LICENSE 67accdedf4 init project há 2 anos atrás
README.md 67accdedf4 init project há 2 anos atrás
at_parser.go 67accdedf4 init project há 2 anos atrás
block_parser.go 67accdedf4 init project há 2 anos atrás
doc.go 67accdedf4 init project há 2 anos atrás
parser.go 67accdedf4 init project há 2 anos atrás
rule.go 67accdedf4 init project há 2 anos atrás
selector_parser.go 67accdedf4 init project há 2 anos atrás
skip_rule.go 67accdedf4 init project há 2 anos atrás
styledeclaration.go 67accdedf4 init project há 2 anos atrás
stylerule.go 67accdedf4 init project há 2 anos atrás
stylesheet.go 67accdedf4 init project há 2 anos atrás
value.go 67accdedf4 init project há 2 anos atrás

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)
    }
}