第一次提交

This commit is contained in:
2026-02-02 15:16:11 +08:00
parent 60c06d545d
commit 6036b00a9b
15 changed files with 549 additions and 14 deletions
+13
View File
@@ -0,0 +1,13 @@
package utils
import (
"github.com/gogf/gf/v2/os/gfile"
)
func FileExists(path string) bool {
return gfile.Exists(path)
}
func EmptyFile(path string) bool {
return gfile.IsEmpty(path)
}
+17
View File
@@ -0,0 +1,17 @@
package utils
func StrPtr(s string) *string {
return &s
}
func IntPtr(i int) *int {
return &i
}
func Int64Ptr(i int64) *int64 {
return &i
}
func Float64Ptr(f float64) *float64 {
return &f
}
func BoolPtr(b bool) *bool {
return &b
}