check

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

README

package check // import "github.com/HalCanary/facility/check"

Copyright 2022 Hal Canary Use of this program is governed by the file LICENSE.

FUNCTIONS

func Assert(condition bool)
    Runtime check that condition is true. If not, log failure and exit.

func Check(err error)
    Runtime check that err is nil. If not, log err and exit.

Documentation

Overview

Copyright 2022 Hal Canary Use of this program is governed by the file LICENSE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(condition bool)

Runtime check that condition is true. If not, log failure and exit.

func Check

func Check(err error)

Runtime check that err is nil. If not, log err and exit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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