Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JakeCooper/GoFuncYourself
Tired of not writing "if err != nil" in other languages? I've got just the thing
https://github.com/JakeCooper/GoFuncYourself
Last synced: 3 days ago
JSON representation
Tired of not writing "if err != nil" in other languages? I've got just the thing
- Host: GitHub
- URL: https://github.com/JakeCooper/GoFuncYourself
- Owner: JakeCooper
- Created: 2019-09-30T06:02:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T16:58:34.000Z (about 5 years ago)
- Last Synced: 2024-04-23T20:53:46.650Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoFuncYourself
GoFuncYourself is a library that converts proper JavaScript code into tuple return, Golang-style functions.
## Installing
`npm install go-func-yourself`
## How it works
It's as easy as
```
import gfy from 'go-func-yourself'let { res, err } = gfy(() => {
// ... your func
});
if (err) {
// ... do error
}
// ... do success```
## Contributing
Open a PR and I probably won't review it
## Liscense
MIT