Create a local DynamoDB server for testing purpose on runtime
Simply include the package and start with defined port. Eg.
package main
import (
"time"
server "github.com/YanshuoH/dynamodb-local-server"
)
func main() {
ss := server.Start("48791")
// do whatever you want
time.Sleep(time.Second)
ss.Stop()
}
go test