mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
Update myfile.go
This commit is contained in:
@@ -3,14 +3,15 @@ package myfile
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/xxjwxc/public/tools"
|
||||
)
|
||||
|
||||
// GetExp 获取字符串后缀
|
||||
func GetExp(exp string) string {
|
||||
return path.Ext(exp) //获取文件后缀
|
||||
func GetExp(ext string) string {
|
||||
return strings.TrimLeft(path.Ext(ext), ".")
|
||||
}
|
||||
|
||||
func getFileName(exp string) string {
|
||||
|
Reference in New Issue
Block a user