f23c00d870
remove unnescessary import aliases, brackets, and so on. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
315 B
Go
16 lines
315 B
Go
package archive // import "github.com/docker/docker/pkg/archive"
|
|
|
|
import (
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
func timeToTimespec(time time.Time) (ts syscall.Timespec) {
|
|
if time.IsZero() {
|
|
// Return UTIME_OMIT special value
|
|
ts.Sec = 0
|
|
ts.Nsec = (1 << 30) - 2
|
|
return
|
|
}
|
|
return syscall.NsecToTimespec(time.UnixNano())
|
|
}
|