Skip to content

Commit

Permalink
attributes: Add Binary support
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeken committed Aug 6, 2021
1 parent 486ba80 commit bbc1892
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions attributes/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ func Number(v int64) *dynamodb.AttributeValue {
N: &n,
}
}

// Binary returns dynamodb.AttributeValue for Binary.
func Binary(b []byte) *dynamodb.AttributeValue {
return &dynamodb.AttributeValue{
B: b,
}
}

0 comments on commit bbc1892

Please sign in to comment.