GetModTime returns the last modification time for a given file
(path string)
| 442 | |
| 443 | // GetModTime returns the last modification time for a given file |
| 444 | func GetModTime(path string) (time.Time, error) { |
| 445 | info, err := os.Stat(path) |
| 446 | if err != nil { |
| 447 | return time.Now(), err |
| 448 | } |
| 449 | return info.ModTime(), nil |
| 450 | } |
| 451 | |
| 452 | func HashStringMd5(str string) string { |
| 453 | return fmt.Sprintf("%x", md5.Sum([]byte(str))) |
no outgoing calls
no test coverage detected