feat: refactor.

This commit is contained in:
tx7do
2024-05-06 10:07:22 +08:00
parent 9df72bbad8
commit 7ce746e181
6 changed files with 128 additions and 108 deletions

14
config/utils.go Normal file
View File

@@ -0,0 +1,14 @@
package config
import "os"
func pathExists(path string) bool {
_, err := os.Stat(path)
if err == nil {
return true
}
if os.IsNotExist(err) {
return false
}
return false
}