util

package
v0.0.0-...-92056c7 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

utility

Index

Constants

View Source
const (
	Fatal = iMode(iota)
	Panic
	Trace
	StackTrace
	Print
)

Variables

View Source
var (
	Log = log.New(os.Stderr, "", log.LstdFlags)
	Fmt = &fmtOutput{}
)

Functions

func Assert

func Assert(con interface{}, v ...interface{})

func Mode

func Mode(mode iMode) (ret iMode)

Set assert out mode

func New

func New(mode iMode, out AssertPrint) *asserter

func Output

func Output(out AssertPrint)

Types

type AssertPrint

type AssertPrint interface {
	Print(v ...interface{})
}

Jump to

Keyboard shortcuts

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