Skip to content

Commit ab16a9c

Browse files
committed
fixed flatten documentation
1 parent c7685df commit ab16a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

structs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func New(s interface{}) *Struct {
5656
// in the output map. Example:
5757
//
5858
// // The FieldStruct's fields will be flattened into the output map.
59-
// FieldStruct time.Time `structs:"flatten"`
59+
// FieldStruct time.Time `structs:",flatten"`
6060
//
6161
// A tag value with the option of "omitnested" stops iterating further if the type
6262
// is a struct. Example:

0 commit comments

Comments
 (0)