mirror of
https://github.com/beego/bee.git
synced 2024-11-25 15:00:55 +00:00
Fixed a typo
This commit is contained in:
parent
621dbf2ed9
commit
1c0a569116
2
watch.go
2
watch.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user