file

package
v0.0.0-...-58ae8e0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package file 文件操作辅助函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(fileToCheck string) bool

Exists 判断文件是否存在

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

func Put

func Put(data []byte, to string) error

Put 将数据存入文件

func SaveUploadAvatar

func SaveUploadAvatar(c *gin.Context, file *multipart.FileHeader) (string, error)

SaveUploadAvatar 修改头像验证器 调用

Types

This section is empty.

Jump to

Keyboard shortcuts

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