etcd/pkg/fileutil
Gyuho Lee 1caaa9ed4a test: test update for Go 1.12.5 and related changes
Update to Go 1.12.5 testing. Remove deprecated unused and gosimple
pacakges, and mask staticcheck 1006. Also, fix unconvert errors related
to unnecessary type conversions and following staticcheck errors:
- remove redundant return statements
- use for range instead of for select
- use time.Since instead of time.Now().Sub
- omit comparison to bool constant
- replace T.Fatal and T.Fatalf in tests with T.Error and T.Fatalf respectively because the goroutine calls T.Fatal must be called in the same goroutine as the test
- fix error strings that should not be capitalized
- use sort.Strings(...) instead of sort.Sort(sort.StringSlice(...))
- use he status code of Canceled instead of grpc.ErrClientConnClosing which is deprecated
- use use status.Errorf instead of grpc.Errorf which is deprecated

Related #10528 #10438
2019-06-05 17:02:05 -04:00
..
dir_unix.go fileutil: windows OpenDir 2016-09-08 00:09:16 -07:00
dir_windows.go fileutil: windows OpenDir 2016-09-08 00:09:16 -07:00
doc.go pkg/fileutil: test "Exist" on directory 2018-04-08 14:26:30 -07:00
fileutil.go *: update import paths to "go.etcd.io/etcd" 2018-08-28 17:47:55 -07:00
fileutil_test.go pkg/fileutil: add "ReadDirOption" 2018-05-18 10:28:27 -07:00
lock.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
lock_flock.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
lock_linux.go pkg/fileutil: clarify flock errors 2018-05-03 14:00:42 -07:00
lock_linux_test.go fileutil: test some fallback functionality 2017-06-07 11:22:40 -07:00
lock_plan9.go pkg/fileutil: expose PrivateFileMode/DirMode 2016-06-10 15:22:14 -07:00
lock_solaris.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
lock_test.go test: test update for Go 1.12.5 and related changes 2019-06-05 17:02:05 -04:00
lock_unix.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
lock_windows.go *: fix naked returns 2017-11-10 18:46:15 -08:00
preallocate.go fileutil: return immediately if preallocating 0 bytes 2017-06-07 09:57:14 -07:00
preallocate_darwin.go pkg/fileutil: fix preallocate under OS X kernel 2017-12-14 10:36:57 -08:00
preallocate_test.go fileutil: test some fallback functionality 2017-06-07 11:22:40 -07:00
preallocate_unix.go *: misc typos and go vet fixes 2016-06-22 10:32:13 -07:00
preallocate_unsupported.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
purge.go pkg: support structured logger 2018-04-16 17:36:00 -07:00
purge_test.go test: test update for Go 1.12.5 and related changes 2019-06-05 17:02:05 -04:00
read_dir.go pkg/fileutil: add "ReadDirOption" 2018-05-18 10:28:27 -07:00
read_dir_test.go pkg/fileutil: add "ReadDirOption" 2018-05-18 10:28:27 -07:00
sync.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
sync_darwin.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00
sync_linux.go pkg: update LICENSE header 2016-05-12 20:48:53 -07:00