func IsFileOrNotExist(fname string) bool {
	return !IsDir(fname)
}
IsFileOrNotExist check whether given name is a file or not exist
package file
import (
	"os"
)
const (
	FilePerm = 0644
	DirPerm  = 0755
)
func IsExist(fname string) bool {
	_, err := os.Stat(fname)
	return !os.IsNotExist(err)
}
func IsFile(fname string) bool {
	fi, err := os.Stat(fname)
	return err == nil && !fi.IsDir()
}
func IsDir(fname string) bool {
	fi, err := os.Stat(fname)
	return err == nil && fi.IsDir()
}