util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePathIfNotExists

func CreatePathIfNotExists(path string) error

func GetCST8Time

func GetCST8Time(t time.Time) time.Time

func GetMPFDContentType

func GetMPFDContentType(file *multipart.FileHeader) (string, error)

GetMPFDContentType 根据gin文档,FileName不可靠,使用文件头特征识别mime

func GetRandomString

func GetRandomString(n int) string

func IF

func IF(f bool, a interface{}, b interface{}) interface{}

func IsExists

func IsExists(path string) bool

func IsInStringSlice

func IsInStringSlice(key string, str []string) bool

func SaveUploadedFile

func SaveUploadedFile(file *multipart.FileHeader, dst string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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