mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
完善gfile注释
This commit is contained in:
@ -317,7 +317,7 @@ func Dir(path string) string {
|
|||||||
return filepath.Dir(path)
|
return filepath.Dir(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取指定文件路径的文件扩展名
|
// 获取指定文件路径的文件扩展名(包含"."号)
|
||||||
func Ext(path string) string {
|
func Ext(path string) string {
|
||||||
return filepath.Ext(path)
|
return filepath.Ext(path)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user