Skip to content

ryanc414/dynamodbav

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Go Reference

dynamodbav - DynamoDB Marshal/Unmarshal utilities

Intended as a complement to the official AWS SDK V2 for Go, this micro library provides marshal/unmarshal helpers using Go 1.18+ generics to reduce boilerplate.

As an example, here is how the following code using the SDK may be simplified using this package:

    // Using SDK directly
    result := new(MyType)

    if err := attributevalue.UnmarshalMap(item, result); err != nil {
        return nil, err
    }

    return result, nil

    // Using this package, reduce 5 lines of code to 1:
    return dynamodbav.UnmarshalItem[MyType](item)

About

Marshal/Unmarshal utilities for DynamoDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages