1
0
This commit is contained in:
Arpad Ryszka 2025-11-05 19:16:44 +01:00
parent 6ce28547b8
commit 3443251be2
2 changed files with 5 additions and 2 deletions

2
lib.go
View File

@ -131,7 +131,7 @@ func FieldValues(structure any) []Field {
return fieldValuesReflect(structure) return fieldValuesReflect(structure)
} }
// Bind sets structure fields recursively. It traverses through poitners, slices and interfaces. It returns the // Bind sets structure fields recursively. It traverses through pointers, slices and interfaces. It returns the
// values for which it is not possible to find a compatible matching field. It supports maps that have string // values for which it is not possible to find a compatible matching field. It supports maps that have string
// keys and scalar values. // keys and scalar values.
func Bind(structure any, value ...Field) []Field { func Bind(structure any, value ...Field) []Field {

View File

@ -2,6 +2,9 @@
Package bind provides functions to work with flattened lists of structure fields. Package bind provides functions to work with flattened lists of structure fields.
See the documentation at: https://godocs.io/code.squareroundforest.org/arpio/bind See the documentation at:
- https://godocs.io/code.squareroundforest.org/arpio/bind
- [lib.go](lib.go)
*Made in Berlin, DE* *Made in Berlin, DE*