fsutil

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(path string) (*os.File, error)

CreateFile creates a file and automatically creates a directory if the file directory does not exist.

func GenerateUploadPath added in v0.1.21

func GenerateUploadPath(userID int64, filename string) string

GenerateUploadPath builds an object key for uploaded files.

func ParseMIMEType added in v0.1.22

func ParseMIMEType(v string) (string, error)

ParseMIMEType validates v as a bare MIME type and returns its normalized form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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