prototyped svg reports

This commit is contained in:
2026-07-18 18:24:37 -06:00
parent 22e7b003f6
commit c51ad80dc6
106 changed files with 5450 additions and 46 deletions
+26
View File
@@ -0,0 +1,26 @@
package svg
import (
"fmt"
"strings"
)
type (
Points []Point
Point struct {
X float64
Y float64
}
)
func (Points) PrintKey() string {
return "points"
}
func (ps Points) PrintValue() (string, bool) {
ss := make([]string, len(ps))
for i, p := range ps {
ss[i] = fmt.Sprintf("%v,%v", p.X, p.Y)
}
return fmt.Sprintf("%q", strings.Join(ss, " ")), true
}