Switch to go modules
This commit is contained in:
parent
461954facb
commit
1720059244
763 changed files with 24896 additions and 177398 deletions
19
vendor/github.com/ncabatoff/go-seq/.travis.yml
generated
vendored
19
vendor/github.com/ncabatoff/go-seq/.travis.yml
generated
vendored
|
|
@ -1,19 +0,0 @@
|
|||
sudo: false
|
||||
language: go
|
||||
before_install:
|
||||
- go get github.com/mattn/goveralls
|
||||
matrix:
|
||||
include:
|
||||
- go: 1.6.x
|
||||
script: go test -v -race ./...
|
||||
- go: 1.x
|
||||
script:
|
||||
- diff -u <(echo -n) <(gofmt -d .)
|
||||
- go install -v ./...
|
||||
- go vet -v ./...
|
||||
- $GOPATH/bin/goveralls -v -race -service=travis-ci
|
||||
- go: master
|
||||
script: go test -v -race ./...
|
||||
allow_failures:
|
||||
- go: master
|
||||
fast_finish: true
|
||||
44
vendor/github.com/ncabatoff/go-seq/README.md
generated
vendored
44
vendor/github.com/ncabatoff/go-seq/README.md
generated
vendored
|
|
@ -1,44 +0,0 @@
|
|||
# Package for ordering of Go values
|
||||
|
||||
[][godoc]
|
||||
[][travis]
|
||||
[](https://coveralls.io/github/ncabatoff/go-seq?branch=master)
|
||||
|
||||
This package is intended to allow ordering (most) values via reflection,
|
||||
much like go-cmp allows comparing values for equality.
|
||||
|
||||
This is helpful when trying to write `Less()` methods for sorting structures.
|
||||
Provided all the types in question are supported, you can simply define it
|
||||
as follows:
|
||||
|
||||
```go
|
||||
import "github.com/ncabatoff/go-seq/seq"
|
||||
|
||||
type (
|
||||
MyType struct {
|
||||
a int
|
||||
b string
|
||||
}
|
||||
MyTypeSlice []MyType
|
||||
)
|
||||
func (m MyTypeSlice) Less(i, j int) bool { return seq.Compare(m[i], m[j]) < 0 }
|
||||
```
|
||||
|
||||
Noteable unsupported types include the builtin `complex` type, channels,
|
||||
functions, and maps with non-string keys. Pointers can be ordered if their
|
||||
underlying types are orderable.
|
||||
|
||||
[godoc]: https://godoc.org/github.com/ncabatoff/go-seq/seq
|
||||
[travis]: https://travis-ci.org/ncabatoff/go-seq
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
go get -u github.com/ncabatoff/go-seq/seq
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT - See [LICENSE][license] file
|
||||
|
||||
[license]: https://github.com/ncabatoff/go-seq/blob/master/LICENSE
|
||||
0
vendor/github.com/ncabatoff/procfs/ttar
generated
vendored
Executable file → Normal file
0
vendor/github.com/ncabatoff/procfs/ttar
generated
vendored
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue