filetypes

package
v0.4.14-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FirstclassFileExtensions = map[string]struct{}{
	".pdf":   {},
	".html":  {},
	".md":    {},
	".txt":   {},
	".docx":  {},
	".odt":   {},
	".rtf":   {},
	".csv":   {},
	".ipynb": {},
	".json":  {},
}

Functions

func GetFiletype

func GetFiletype(filename string, content []byte) (string, error)

GetFiletype returns the filetype of a file based on its filename or content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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