fsutils

package
v0.0.0-...-c99d64b Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAndHash

func ReadAndHash(r io.Reader) (buf []byte, base64Hash string, err error)

ReadAndHash read a file from an io.Reader and create the sha256 hash based on the containt of the request body to be used as filename

func ResizeImage

func ResizeImage(buf []byte, width, height int, crop bool) (outBuf []byte, base64Hash string, err error)

ResizeImage resize image TODO:Comment and write test

Types

This section is empty.

Jump to

Keyboard shortcuts

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