utility

package
v0.0.0-...-30be18a Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(NewFileName string, OldFileName string) (written int64, err error)

CopyFile 复制文件 (新文件,被复制的文件)

func FileNew

func FileNew(NewFileName string, file multipart.File) (string, error)

FileNew 文件地址成文件 (新文件路径,新文件名,文件地址)

func NewPath

func NewPath(File string)

NewPath 传入完整路径包括文件名

func StringBySliceInt

func StringBySliceInt(separator string, slice []int) string

StringBySliceInt 数字切片转成字符串

func StringBySliceString

func StringBySliceString(separator string, slice []string) string

StringBySliceString 字符串类型切片转成字符串

func UrlRootPath

func UrlRootPath() (url string, err error)

UrlRootPath 获取当前项目的跟目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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