Use gometalinter for linting
gometalinter runs linters in parallel for faster linting it provides a uniform way of whitelisting lines using // nolint or the exclude field in the config Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
@@ -6,14 +6,17 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// StatAtime returns the access time from a stat struct
|
||||
func StatAtime(st *syscall.Stat_t) syscall.Timespec {
|
||||
return st.Atimespec
|
||||
}
|
||||
|
||||
// StatCtime returns the created time from a stat struct
|
||||
func StatCtime(st *syscall.Stat_t) syscall.Timespec {
|
||||
return st.Ctimespec
|
||||
}
|
||||
|
||||
// StatMtime returns the modified time from a stat struct
|
||||
func StatMtime(st *syscall.Stat_t) syscall.Timespec {
|
||||
return st.Mtimespec
|
||||
}
|
||||
|
Reference in New Issue
Block a user