helpers

package
v0.0.0-...-7cd4bc0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filePath string) bool

func FixedNumberLength

func FixedNumberLength(number int, length int) string

func GetFileExtension

func GetFileExtension(filename string) string

func GetImageCreationTime

func GetImageCreationTime(file io.Reader) (time.Time, error)

func GetVideoCreationTime

func GetVideoCreationTime(videoBuffer io.ReadSeeker) (time.Time, error)

func IsVideo

func IsVideo(filename string) bool

func OutputJSONTo

func OutputJSONTo(writer http.ResponseWriter, object any)

func ParseJSONFile

func ParseJSONFile[OutputStruct any](path string, output *OutputStruct) error

func SaveFile

func SaveFile(filePath string, stream io.Reader) error

func SolveFilenameConflict

func SolveFilenameConflict(filePath string) string

func WriteToStream

func WriteToStream(output io.Writer, input io.Reader) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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