mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
archive/zip: stop using encoding/binary
R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/5694085
This commit is contained in:
parent
28668c3a28
commit
228f44a1f5
3 changed files with 131 additions and 128 deletions
|
|
@ -100,16 +100,6 @@ type directoryEnd struct {
|
|||
comment string
|
||||
}
|
||||
|
||||
func recoverError(errp *error) {
|
||||
if e := recover(); e != nil {
|
||||
if err, ok := e.(error); ok {
|
||||
*errp = err
|
||||
return
|
||||
}
|
||||
panic(e)
|
||||
}
|
||||
}
|
||||
|
||||
// msDosTimeToTime converts an MS-DOS date and time into a time.Time.
|
||||
// The resolution is 2s.
|
||||
// See: http://msdn.microsoft.com/en-us/library/ms724247(v=VS.85).aspx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue