package
0.0.0-20200628105730-7179885c4902
Repository: https://github.com/exlinc/golang-utils.git
Documentation: pkg.go.dev

# README

HTTP Upload Utils

Standard functions for handling file (image too) uploads over HTTP with Go

# Functions

FormatAndContentTypeForImgType is a utility to get the imgio.Encoder, content type, and file extension from the ImgType const.
NewS3UploaderConfig creates an S3Session to bypass vendored lib conflicts across project -- it also enforces using the AWS standard config.
PresignS3GetObjectRequest is a utility to presign an S3 get object request for a period of time -- returning the presigned URL to the caller.
ResizeImage is a utility to get the resized version of an image using the Lanczos transform.

# Constants

JPG is a JPG/JPEG image format.
PNG is a PNG image format.

# Structs

UploaderConfig outlines various configuration options for upload-related requests, they are required/optional on a per-method basis.

# Type aliases

ImgType is a type used to track image formats.