move auth to auth

This commit is contained in:
2024-12-22 21:33:46 +01:00
parent 877557febe
commit 3c601caf02
21 changed files with 279 additions and 265 deletions

11
pkg/fileExists.go Normal file
View File

@@ -0,0 +1,11 @@
package pkg
import (
"os"
)
// Checks if file on path exists or not
func FileExists(path string) bool {
_, err := os.Stat(path)
return !os.IsNotExist(err)
}