1
0
mirror of https://github.com/beego/bee.git synced 2024-10-31 18:50:54 +00:00

Fixed a typo

This commit is contained in:
Faissal Elamraoui 2016-11-23 15:58:38 +01:00
parent 621dbf2ed9
commit 1c0a569116

View File

@ -96,7 +96,7 @@ func NewWatcher(paths []string, files []string, isgenerate bool) {
} }
// getFileModTime retuens unix timestamp of `os.File.ModTime` by given path. // getFileModTime returns unix timestamp of `os.File.ModTime` for the given path.
func getFileModTime(path string) int64 { func getFileModTime(path string) int64 {
path = strings.Replace(path, "\\", "/", -1) path = strings.Replace(path, "\\", "/", -1)
f, err := os.Open(path) f, err := os.Open(path)