package svg type ( FontSize struct { *LengthAttr[FontSizeTag] } FontSizeP struct { PercentageAttr[FontSizeTag] } FontSizeTag struct{} ) func (l *Length) AsFontSize() FontSize { return FontSize{LengthAttr: (*LengthAttr[FontSizeTag])(l)} } func (p Percentage) AsFontSize() FontSizeP { return FontSizeP{PercentageAttr: (PercentageAttr[FontSizeTag])(p)} } func (FontSizeTag) PrintTag() string { return "font-size" }