webfile

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(f multipart.File, h *multipart.FileHeader, salt []byte) (string, error)

Hash computes a hash of a given multipart.File. Apply an optional salt to create a unique hash if needed.

func MimeType

func MimeType(f multipart.File, h *multipart.FileHeader) (string, error)

MimeType returns the media type of a multipart.File object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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