utils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAWSError

func IsAWSError(err error, code string) bool

IsAWSError checks if the given error is of the specified AWS error code.

func LogError

func LogError(err error)

LogError logs the given error if it is not nil.

func NewAWSSession

func NewAWSSession(region string) (*session.Session, error)

NewAWSSession creates a new AWS session with the given region.

func ParseJSON

func ParseJSON(data string, v interface{}) error

ParseJSON unmarshals a JSON string into the given interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL