assert

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(err error)

func NoError

func NoError(err error, code int)

func OK

func OK(ok bool, code int, message string)

func Panic

func Panic(code int, message string)

Types

type Error

type Error struct {
	StatusCode int
	Message    string
}

func (Error) Code

func (p Error) Code() int

func (Error) Error

func (p Error) Error() string

Jump to

Keyboard shortcuts

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