Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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