mimetype

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataFromFilename

func DataFromFilename(fullPath string) (name string, isText bool, skip bool)

DataFromFilename fetches all meta information from hypha content file with path `fullPath`. If it is not a content file, `skip` is true, and you are expected to ignore this file when indexing hyphae. `name` is name of the hypha to which this file relates. `isText` is true when the content file is text, false when is binary.

func FromExtension

func FromExtension(ext string) string

FromExtension returns mime-type for given extension. The extension must start with a dot.

func ToExtension

func ToExtension(mime string) string

ToExtension returns dotted extension for given mime-type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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