Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zkfmapf123/go-js-utils
- Owner: zkfmapf123
- Created: 2024-04-27T09:05:16.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-12-28T02:42:14.000Z (20 days ago)
- Last Synced: 2024-12-28T03:24:56.494Z (20 days ago)
- Topics: functional-programming, go, javascript, library, method-chaining
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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