storage

package
v0.0.0-...-84c8136 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UploadDir = "./uploads"

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(filePath string) error

DeleteFile deletes the file at the specified path

func GetFilePath

func GetFilePath(id, name string) (string, error)

GetFilePath returns the file path based on the UUID and file name

func SaveFile

func SaveFile(src io.Reader, dstPath string) error

SaveFile saves the uploaded file to the specified path

Types

This section is empty.

Jump to

Keyboard shortcuts

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