Commit Graph

6 Commits

Author SHA1 Message Date
Lars Lehtonen
38e0ce95fa
tools/kv: Fix dropped test error 2019-10-25 13:25:52 -07:00
Marat Radchenko
482260c7e3 Fix error strings to follow Go guidelines
Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
2019-10-22 17:33:49 +03:00
Kazuki MATSUDA / 松田一樹
4bc322352f
NON-ISSUE Update deprecated SEEK_SET, SEEK_CUR usage.
os.SEEK_XXX is not deprecated and we can use io.SeekXxx instead.

https://golang.org/pkg/os/#pkg-constants

```go
// Seek whence values.
//
// Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.
const (
	SEEK_SET int = 0 // seek relative to the origin of the file
	SEEK_CUR int = 1 // seek relative to the current offset
	SEEK_END int = 2 // seek relative to the end
)
```

https://golang.org/pkg/io/#pkg-constants

```go
// Seek whence values.
const (
	SeekStart   = 0 // seek relative to the origin of the file
	SeekCurrent = 1 // seek relative to the current offset
	SeekEnd     = 2 // seek relative to the end
)
```
2019-07-27 12:48:42 +09:00
Steve Streeting
eccfa781ae Add RemoveAll and Visit functions to kv store 2016-12-12 10:26:12 +00:00
Steve Streeting
a047f0a494 PR review; tidy stat 2016-11-28 15:12:59 +00:00
Steve Streeting
a372626a31 Move KeyValueStore into tools/kv and shorten naming 2016-11-28 15:12:59 +00:00