Source File
specificity.go
Belonging Package
github.com/andybalholm/cascadia
package cascadia// Specificity is the CSS specificity as defined in// https://www.w3.org/TR/selectors/#specificity-rules// with the convention Specificity = [A,B,C].type Specificity [3]int// returns `true` if s < other (strictly), false otherwisefunc ( Specificity) ( Specificity) bool {for := range {if [] < [] {return true}if [] > [] {return false}}return false}func ( Specificity) ( Specificity) Specificity {for , := range {[] +=}return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |