mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 06:56:10 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
package file
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gfile"
|
||||
"hotgo/utility/format"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
@@ -111,3 +112,9 @@ func DirSize(dirname string) string {
|
||||
|
||||
return format.FileSize(ss)
|
||||
}
|
||||
|
||||
func MergeAbs(path string, fileName ...string) string {
|
||||
var paths = []string{gfile.RealPath(path)}
|
||||
paths = append(paths, fileName...)
|
||||
return gfile.Join(paths...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user