1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +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 {
path = strings.Replace(path, "\\", "/", -1)
f, err := os.Open(path)