Documentation ¶
Index ¶
- func CopyStruct(source, target interface{})
- func DynamoListToInterface(items []map[string]types.AttributeValue, i interface{})
- func DynamoMapToInterface(item map[string]types.AttributeValue, i interface{})
- func EncodeStr(s string) string
- func GetEnv(name, value string) string
- func NewContextWithTimeout(inSec time.Duration) (context.Context, context.CancelFunc)
- func StringToInt(value string) int64
- func StringToStruct(s string, i interface{})
- func ToDynamoDBMap(i interface{}) map[string]types.AttributeValue
- func ToString(i interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyStruct ¶
func CopyStruct(source, target interface{})
CopyStruct copy source to target based on json tags/*
func DynamoListToInterface ¶
func DynamoListToInterface(items []map[string]types.AttributeValue, i interface{})
DynamoListToInterface unmarshal items map to model based on dynamoav tags/*
func DynamoMapToInterface ¶
func DynamoMapToInterface(item map[string]types.AttributeValue, i interface{})
DynamoMapToInterface unmarshal items map to model based on dynamoav tags/*
func NewContextWithTimeout ¶
NewContextWithTimeout creates new context with timeout/*
func StringToStruct ¶
func StringToStruct(s string, i interface{})
StringToStruct parse string to struct/*
func ToDynamoDBMap ¶
func ToDynamoDBMap(i interface{}) map[string]types.AttributeValue
ToDynamoDBMap converts interface to map[string]*dynamodb.Attribute. Just use this function when your struct has configured json tags/*
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.