发电机
import "github.com/guregu/dynamo"
dynamo是Go的一个富有表现力的客户端,它具有简单但功能强大的API。 dynamo与官方的集成。
该库是稳定的,并带有Go模块的版本。
例
package dynamo
import (
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/guregu/dynamo"
)
// Use struct tags much like the standard JSON library,
// you can embed anonymous structs too!
type widget struct {
UserID int // Hash key, a.k.a. partition key
Time time. Time // Range key, a.k.a. sort key
Msg string `
1