Use UtimesNano instead of Utime.
unix.Utime is not available on NetBSD (at least in x/sys/unix), and it is generally a deprecated interface. As a bonus, using UtimesNano keeps the timestamps at nanosecond granularity.
unix.Utime is not available on NetBSD (at least in x/sys/unix), and it is generally a deprecated interface. As a bonus, using UtimesNano keeps the timestamps at nanosecond granularity.