https://github.com/radutopala/flatten
Go Flatten for flattening Go arrays and slices
https://github.com/radutopala/flatten
go golang
Last synced: 3 months ago
JSON representation
Go Flatten for flattening Go arrays and slices
- Host: GitHub
- URL: https://github.com/radutopala/flatten
- Owner: radutopala
- Created: 2019-10-03T08:27:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-03T09:44:31.000Z (over 5 years ago)
- Last Synced: 2025-01-13T08:34:06.601Z (5 months ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Flatten
[](https://github.com/radutopala/flatten/actions)
Go lib for flattening Go array and slices.
## Installation
```
go get github.com/radutopala/flatten
```## Usage
```
package mainimport (
"fmt"
"github.com/radutopala/flatten"
)func main() {
fmt.Println(flatten.It([]interface{}{[]interface{}{1, 2, []int{3}}, 4}))
}```