-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
Hi there!
I'm from giu
We found the following issue in AllenDang/giu#979:
package main
import (
"fmt"
"github.com/napsy/go-css"
)
func main() {
ex1 := `
rule {
style1: value1;
}
rule2 {
style2: value2;
}`
stylesheet, err := css.Unmarshal([]byte(ex1))
if err != nil {
panic(err)
}
fmt.Printf("Defined rules:\n")
for k := range stylesheet {
fmt.Printf("- rule %q\n", k)
for v := range stylesheet[k] {
fmt.Printf(" - property %q\n", v)
}
}
}output:
Defined rules:
- rule "rule"
- property "style1"
- rule "rule2"
- property "style2"
- property "style1"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels