check

package module
v0.0.0-...-8dd403d Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func E

func E(err error) checkE

E captures an error.

func F

func F(msg string, args ...any)

func K

func K[T any](v T, ok bool) valueOK[T]

K captures a value and a bool.

func L

func L(msg string, args ...any)

func P

func P(msg string, args ...any)

func T

func T(ok bool) checkT

T captures a bool.

func V

func V[T any](v T, err error) valueE[T]

V captures a value and an error. Usage:

V(os.CreateFile(filename, 0600)).P("open file", "filename", filename), or
V(os.CreateFile(filename, 0600)).P(), or
V(os.CreateFile(filename, 0600)).F("open file", "filename", filename)
V(os.CreateFile(filename, 0600)).F()

Types

This section is empty.

Jump to

Keyboard shortcuts

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