Skip to content

Tired of not writing "if err != nil" in other languages? I've got just the thing

Notifications You must be signed in to change notification settings

JakeCooper/GoFuncYourself

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Tired of not writing "if err != nil" in other languages? I've got just the thing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published