util

package
v0.0.0-...-165d932 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int) string

func FileExist

func FileExist(path string) bool

func GetParentDirectory

func GetParentDirectory(directory string) string

func IsDirectory

func IsDirectory(filename string) bool

func IsFile

func IsFile(filename string) bool

func IsHiddenFile

func IsHiddenFile(name string) bool

func IsTextFile

func IsTextFile(filepath string) bool

func MkFileIfNotExist

func MkFileIfNotExist(path string)

func MkdirIfNotExist

func MkdirIfNotExist(path string)

func ParseFileContentType

func ParseFileContentType(fileName string) string

func Substr

func Substr(s string, pos, length int) string

func UploadFileTo

func UploadFileTo(fh *multipart.FileHeader, destDirectory 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