storage

package
v0.0.0-...-155d9f0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectContentType

func DetectContentType(filename string, content []byte) string

DetectContentType - detects content type using the file's extension or content. Extension matching is performed first, if the content type can't be determined by the file extension then the file contents will be inspected to attempt to determine the content type. If the content type cannot be determined it returns "application/octet-stream"

Types

This section is empty.

Jump to

Keyboard shortcuts

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