Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zkfmapf123/go-js-utils

Using js method in golang
https://github.com/zkfmapf123/go-js-utils

functional-programming go javascript library method-chaining

Last synced: 4 days ago
JSON representation

Using js method in golang

Awesome Lists containing this project

README

        

# Go-JS-Utils

## Desc

- Using js method in Golang

## Install

```
go get -u github.com/zkfmapf123/[email protected]
```

## Object Method

[object code](./object.go)

| golang | js-method |
| -------- | -------------- |
| OKeys | Object.keys |
| OValues | Object.values |
| OEntries | Object.entries |

## Array Method

[array code](./array.go)

- Contains

## Wrapping Method

[wrapArray code](./wrapArray.go)

| golang | js-method |
| ------ | --------- |
| Map | map |
| Filter | filter |
| Reduce | reduce |

## parallelism

[promise code](./parallelism.go)

- PromiseAll

## JSON

[json code](./json.go)

| golang | js-method |
| ------------- | -------------- |
| JsonStringify | JSON.stringify |
| JsonParse | JSON.parse |

## Help

- golines