fileutil

package
v1.0.1-0...-bd443ad Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentType

func GetContentType(file io.ReadSeeker) (string, error)

func GetContentType2

func GetContentType2(file io.Reader) (mType string, newReader io.Reader, err error)

GetContentType2 从file中读出最多512字节用于确定类型 并所回一个新的reader供后续使用

func GetFileExtension

func GetFileExtension(fileName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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