go-metrics
go-metrics copied to clipboard
Fix broken builds against Go 1.6 and 1.7
Avoid using sort.Slice when building against Go 1.6 or 1.7, instead using the older sort.Sort interface. Fixes #59.
Hello,
was this PR considered for merging?
I think it's a trivial fix that makes github.com/hashicorp/raft buildable again with Go 1.6, which regressed due to this go-metrics issue (I have an app that requires to be buildable with Go 1.6 and that depends on hashicorp's raft, and hence on go-metrics).
Tahnks
Could this be reviewed?