Skip to content

Commit

Permalink
unmarshal.go: Document Unmarshal better
Browse files Browse the repository at this point in the history
  • Loading branch information
livingsilver94 committed Jan 25, 2022
1 parent 2b0d03a commit 34bea50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ type StringMapUnmarshaler interface {
// v must be a pointer to struct or an interface. Neither data nor v can be nil.
//
// Unmarshal uses the inverse of the encodings that Marshal uses, so all the types supported
// by it are also supported in Unmarshal, except the interfaces: only encoding.TextUnmarshaler
// can be unmarshaled.
// by it are also supported in Unmarshal, except fmt.Stringer which doesn't have an inverse.
//
// The decoding of each struct field can be customized by the format string documented in Marshal.
func Unmarshal(data map[string]string, v interface{}) error {
Expand Down

0 comments on commit 34bea50

Please sign in to comment.