util

package
v0.0.0-...-a39f72a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileSha1

func FileSha1(file *os.File) string

FileSha1 generate file's sha1.

func Filename

func Filename(oldFilename, newFilename string) string

Filename rename file name.

func FormatFileType

func FormatFileType(filename string) (string, bool)

func LocalStore

func LocalStore(file multipart.File, location string) (string, string, error)

LocalStore storage file to the local server.

func Meta

func Meta(r rp.File, folderid, userid uint64, filename string, file multipart.File) (rp.File, error)

func Sha1

func Sha1(data []byte) string

func SplicingString

func SplicingString(strs ...string) string

SplicingString

Types

This section is empty.

Jump to

Keyboard shortcuts

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