https://github.com/spatialcurrent/go-flat
Recursively flatten a slice of slices.
https://github.com/spatialcurrent/go-flat
big-data bigdata data
Last synced: 7 days ago
JSON representation
Recursively flatten a slice of slices.
- Host: GitHub
- URL: https://github.com/spatialcurrent/go-flat
- Owner: spatialcurrent
- License: mit
- Created: 2019-06-14T13:16:59.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-11-20T21:23:52.000Z (about 4 years ago)
- Last Synced: 2023-07-27T22:38:22.357Z (over 2 years ago)
- Topics: big-data, bigdata, data
- Language: Go
- Homepage: https://pkg.go.dev/github.com/spatialcurrent/go-flat/pkg/flat
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://circleci.com/gh/spatialcurrent/go-flat/tree/master) [](https://goreportcard.com/report/spatialcurrent/go-flat) [](https://godoc.org/github.com/spatialcurrent/go-flat) [](https://github.com/spatialcurrent/go-flat/blob/master/LICENSE)
# go-flat
# Description
**go-flat** is a simple library that provides functions to recursively flatten a slice of slices.
# Usage
**Go**
You can import **go-flat** as a library with:
```go
import (
"github.com/spatialcurrent/go-flat/pkg/flat"
)
```
See [flat](https://pkg.go.dev/github.com/spatialcurrent/go-flat/pkg/flat) in the docs for information on how to use Go API. See the tests for ways to use this library.
# Examples
See [examples](https://pkg.go.dev/github.com/spatialcurrent/go-flat/pkg/flat) in the docs.
# Testing
Run test using `make test` or (`bash scripts/test.sh`), which runs unit tests, `go vet`, `go vet with shadow`, [errcheck](https://github.com/kisielk/errcheck), [ineffassign](https://github.com/gordonklaus/ineffassign), [staticcheck](https://staticcheck.io/), and [misspell](https://github.com/client9/misspell).
# Contributing
[Spatial Current, Inc.](https://spatialcurrent.io) is currently accepting pull requests for this repository. We'd love to have your contributions! Please see [Contributing.md](https://github.com/spatialcurrent/go-flat/blob/master/CONTRIBUTING.md) for how to get started.
# License
This work is distributed under the **MIT License**. See **LICENSE** file.