peterbourgon / diskv

A disk-backed key-value store.
http://godoc.org/github.com/peterbourgon/diskv
MIT License
1.4k stars 102 forks source link

add mod file #52

Closed urandom2 closed 5 years ago

urandom2 commented 5 years ago
peterbourgon commented 5 years ago

Is this PR obviated by #53?

urandom2 commented 5 years ago

Yeah, I would either merge this PR, or #53, not both; just wanted to provide you options.

If you go this route module consumers will pin to commits, not semver tags, and would get dependency tracking: e.g.

module trash

go 1.12

require github.com/arnottcr/diskv v0.0.0-20190412075650-b0f8e951f937

That being said the following does work like expected: (and generated the go.mod above)

go get github.com/arnottcr/diskv@v2.0.2