38 lines
413 B
Go
38 lines
413 B
Go
package svg
|
|
|
|
type (
|
|
G struct {
|
|
Element[GTag, GAttribute, GChildren]
|
|
}
|
|
GTag struct{}
|
|
|
|
GAttribute interface {
|
|
Attribute
|
|
IsGAttribute()
|
|
}
|
|
|
|
GChildren = MarshalerReader
|
|
)
|
|
|
|
func (GTag) PrintTag() string {
|
|
return "g"
|
|
}
|
|
|
|
func (Transform) IsGAttribute() {
|
|
}
|
|
|
|
func (X) IsGAttribute() {
|
|
}
|
|
|
|
func (XP) IsGAttribute() {
|
|
}
|
|
|
|
func (Y) IsGAttribute() {
|
|
}
|
|
|
|
func (YP) IsGAttribute() {
|
|
}
|
|
|
|
func (Class) IsGAttribute() {
|
|
}
|