1
0
mirror of https://github.com/beego/bee.git synced 2025-07-04 21:50:18 +00:00

Added support for gopm

This commit is contained in:
Unknown
2013-11-03 22:16:15 -05:00
parent 865272a7f7
commit a4baa777cb
6 changed files with 111 additions and 68 deletions

View File

@ -153,7 +153,7 @@ func getColorLevel(level string) string {
}
// IsExist returns whether a file or directory exists.
func IsExist(path string) bool {
func isExist(path string) bool {
_, err := os.Stat(path)
return err == nil || os.IsExist(err)
}