We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7861729 commit 17fb876Copy full SHA for 17fb876
1 file changed
reader.go
@@ -28,7 +28,12 @@ type (
28
// for _, field := range reader.GetAllFields() { ...
29
//
30
GetAllFields() []Field
31
-
+ // ToStruct maps all read values to passed instance of struct, by setting
32
+ // all its values for fields with same names.
33
+ // It returns an error if argument is not a pointer to a struct.
34
+ //
35
+ // err := reader.ToStruct(&instance)
36
37
ToStruct(value interface{}) error
38
}
39
0 commit comments