Help us shape the future of Go! Take the 2026 Go Developer Survey

myutils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateFileMD5 added in v1.0.1

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

func GenerateFilePath added in v1.0.1

func GenerateFilePath(baseDir, fold, suffix string) (string, error)

func GetFullHostURL

func GetFullHostURL(uri *protocol.URI) string

getFullHostURL constructs the full host URL including the protocol.

func SaveFile

func SaveFile(file *multipart.FileHeader, filePath 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