Skip to content

Commit

Permalink
netlink: add recommendation for AttributeDecoder on UnmarshalAttribut…
Browse files Browse the repository at this point in the history
…es documentation
  • Loading branch information
mdlayher committed Jul 28, 2018
1 parent bc8ab8a commit 02297a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func MarshalAttributes(attrs []Attribute) ([]byte, error) {
}

// UnmarshalAttributes unpacks a slice of Attributes from a single byte slice.
//
// It is recommend to use the AttributeDecoder type where possible instead of calling
// UnmarshalAttributes and using package nlenc functions directly.
func UnmarshalAttributes(b []byte) ([]Attribute, error) {
var attrs []Attribute
var i int
Expand Down

0 comments on commit 02297a5

Please sign in to comment.