vendor dependencies with dep
This commit is contained in:
parent
93d8310491
commit
1384296a47
2712 changed files with 965742 additions and 0 deletions
23
vendor/github.com/vanng822/css/README.md
generated
vendored
Normal file
23
vendor/github.com/vanng822/css/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# css
|
||||
|
||||
Package css is for parsing css stylesheet.
|
||||
|
||||
# Document
|
||||
|
||||
[](https://godoc.org/github.com/vanng822/css)
|
||||
|
||||
# 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.SelectorText)
|
||||
fmt.Println(rule.Style.Styles)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue