helper

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 0 Imported by: 0

README

Ssi Core / Helper

Contains helper functions to write faster and less code.

### CheckErr

Checks the error and exits the program if it is not nil.

type:

func CheckErr(err error)

example:

package main

import(
    "github.com/ssibrahimbas/ssi-core/pkg/helper"
    "fmt"
)

func main() {
    err := fmt.Errorf("error")
    helper.CheckErr(err) // exits the program
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(e error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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