All checks were successful
build and deploy kleinTodo / build (push) Successful in 15s
14 lines
173 B
Go
14 lines
173 B
Go
package common
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func FileExists(filename string) bool {
|
|
info, err := os.Stat(filename)
|
|
if os.IsNotExist(err) {
|
|
return false
|
|
}
|
|
return !info.IsDir()
|
|
}
|