must

package
v0.0.0-...-b17460c Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

Package must helps you do things that must not fail.

Example:

var clusterURL = must.Get(url.Parse(...))
var conn = must.Get(net.Dial("tcp", ...))
must.Do(telemetry.Shutdown())

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(err error)

Do panics if err is non-nil.

func Get

func Get[T any](v T, err error) T

Get returns v, and panics if err is non-nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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