An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Go Flatten

[![Github Actions](https://github.com/radutopala/flatten/workflows/Test/badge.svg)](https://github.com/radutopala/flatten/actions)

Go lib for flattening Go array and slices.

## Installation
```
go get github.com/radutopala/flatten
```

## Usage

```
package main

import (
"fmt"
"github.com/radutopala/flatten"
)

func main() {
fmt.Println(flatten.It([]interface{}{[]interface{}{1, 2, []int{3}}, 4}))
}

```