doc.go 372 B

12345678910111213141516
  1. // Package css is for parsing css stylesheet.
  2. //
  3. // import (
  4. // "github.com/vanng822/css"
  5. // "fmt"
  6. // )
  7. // func main() {
  8. // csstext = "td {width: 100px; height: 100px;}"
  9. // ss := css.Parse(csstext)
  10. // rules := ss.GetCSSRuleList()
  11. // for _, rule := range rules {
  12. // fmt.Println(rule.Style.Selector.Text())
  13. // fmt.Println(rule.Style.Styles)
  14. // }
  15. // }
  16. package css