This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package svg
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"html"
|
||||
)
|
||||
|
||||
type (
|
||||
Class string
|
||||
)
|
||||
|
||||
func (Class) PrintKey() string {
|
||||
return "class"
|
||||
}
|
||||
|
||||
func (c Class) PrintValue() (string, bool) {
|
||||
return fmt.Sprintf(`"%s"`, html.EscapeString(string(c))), true
|
||||
}
|
||||
Reference in New Issue
Block a user