Run New, NewTemplate and FakeStruct through one bind pipeline naming where they differ

This commit is contained in:
2026-09-28 10:32:28 +02:00
committed by Lillem4n
parent 9ea8f84421
commit cfe653de4d
7 changed files with 58 additions and 29 deletions
+3 -1
View File
@@ -258,7 +258,9 @@ func (s *structShape) compileRecord(categories map[string]node, t reflect.Type,
if err != nil {
return fmt.Errorf("%s: %w", label, err)
}
if err := bindInline(n, label, categories, checkRenders); err != nil {
b := inlineBinding(n, label, categories)
b.typedByGo = true
if err := b.bind(); err != nil {
return err
}
record, columns, err := recordOf(n)