mediautil

package
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath

func ExpandPath(path string) string

ExpandPath expands a leading ~/ using the current user's home directory.

func SanitizeFilename

func SanitizeFilename(s string) string

SanitizeFilename converts text to a conservative, portable filename fragment.

func SaveFile

func SaveFile(data []byte, outputDir, defaultDir, filename, mediaKind string) (string, error)

SaveFile writes generated media to outputDir, falling back to defaultDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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