utils

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateId = createIdGenerator()

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

func FormatTime added in v0.8.0

func FormatTime(t int) string

func GetSingleFile

func GetSingleFile(form *multipart.Form, name string) (*multipart.FileHeader, error)

func HasMusic added in v0.3.0

func HasMusic(entries []fs.DirEntry) bool

func IsFileLossyFormat added in v0.10.0

func IsFileLossyFormat(file string) bool

func IsLossyFormatExt added in v0.10.0

func IsLossyFormatExt(ext string) bool

func IsMultiDisc added in v0.3.0

func IsMultiDisc(entries []fs.DirEntry) bool

func IsMultiDiscName added in v0.3.0

func IsMultiDiscName(name string) bool

func IsMusicFile added in v0.3.0

func IsMusicFile(p string) bool

func IsValidImageExt added in v0.7.0

func IsValidImageExt(ext string) bool

func IsValidTrackExt

func IsValidTrackExt(ext string) bool

func ParseAuthHeader added in v0.10.0

func ParseAuthHeader(authHeader string) (string, error)

func SymlinkReplace added in v0.6.0

func SymlinkReplace(src, dst string) error

func WriteFormFile

func WriteFormFile(file *multipart.FileHeader, dst string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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