added link to source

This commit is contained in:
sm
2016-12-10 16:12:54 -08:00
parent a8f2df2302
commit 33ad165fbc
+3
View File
@@ -23,6 +23,9 @@ func Modified(file io.ReadSeeker) (time.Time, error) {
return m, err return m, err
} }
// times seeks around in file and finds Created and Modified times.
//
// This was transcibed from http://stackoverflow.com/a/21395803
func times(file io.ReadSeeker) (time.Time, time.Time, error) { func times(file io.ReadSeeker) (time.Time, time.Time, error) {
var c, m time.Time var c, m time.Time
var i int64 var i int64