file

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientOriginalExtension

func ClientOriginalExtension(file string) string

func Contain

func Contain(file string, search string) bool

func Create

func Create(file string, content string) error

func Exists

func Exists(file string) bool

func Extension

func Extension(file string, originalWhenUnknown ...bool) (string, error)

Extension Supported types: https://github.com/gabriel-vasile/mimetype/blob/master/supported_mimes.md

func LastModified added in v1.10.2

func LastModified(file, timezone string) (time.Time, error)

func MimeType added in v1.10.2

func MimeType(file string) (string, error)

func Remove

func Remove(file string) error

func Size added in v1.10.2

func Size(file string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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