mapstructure

This commit is contained in:
adman
2026-04-20 23:16:01 +02:00
parent 997594d7c3
commit 8de34dfda1
6 changed files with 1005 additions and 4 deletions
+1 -4
View File
@@ -415,10 +415,7 @@ func ptr[T any](v T) *T {
func Pretty(s string) *Component {
parts := strings.Split(s, "§")
root := Component{}
if parts[0] != "" {
root.Text = parts[0]
}
root := Component{Text: parts[0]}
var current = &root
for i := 1; i < len(parts); i++ {