mirror of
https://github.com/crazy-max/diun.git
synced 2025-01-27 01:08:50 +00:00
16 lines
369 B
Go
16 lines
369 B
Go
// Package css is for parsing css stylesheet.
|
|
//
|
|
// 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.SelectorText)
|
|
// fmt.Println(rule.Style.Styles)
|
|
// }
|
|
// }
|
|
package css
|