noerr

package module
v0.0.0-...-d4c317c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 1 Imported by: 0

README

noerr

You will never see "if err != nil" in the go file again!

Getting Started

Install
go get https://github.com/i0Ek3/noerr
Usage

Import noerr package first with command: import "github.com/i0Ek3/noerr", then use it as follows:

noerr.NoErr(err)
noerr.NoErrP(err)
noerr.NoErrF(err)
noerr.NoErrPc(err)
noerr.NoErrln(err)

TODO

  • support ok checking

Contributing

Pull requests and Issue are also welcome.

Show your support

Give a ⭐️ if this project helped you!

License

MIT.

Documentation

Overview

noerr support the simple way to get rid of obvious judge like if err != nil;

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoErr

func NoErr(err error) (v interface{}, e error)

NoErr call the function noerr to return the value

func NoErrF

func NoErrF(err error)

NoErrF indicats the standard error showing then break

func NoErrP

func NoErrP(err error)

NoErrP indicats the standard error showing then print

func NoErrPc

func NoErrPc(err error)

func NoErrln

func NoErrln(err error)

func Oked

func Oked(ok bool) bool

Oked is the public function to calling to oked

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL