package tools import ( "os" ) func FileExist(path string) bool { _, err := os.Lstat(path) return !os.IsNotExist(err) }