assets

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package assets provides utilities for managing application assets like images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImage

func DeleteImage(filename string) error

DeleteImage removes an image from the images directory

func GetImages

func GetImages() ([]string, error)

GetImages returns a list of image files in the images directory

func GetImagesDir

func GetImagesDir() (string, error)

GetImagesDir returns the absolute path to the application's images directory. It ensures the directory exists, creating it if necessary.

func ReadImage

func ReadImage(filename string) ([]byte, error)

ReadImage reads an image file from the images directory

func SaveImage

func SaveImage(filename string, data io.Reader) error

SaveImage saves and resizes an uploaded image to the images directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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