util

package
v0.0.0-...-462374e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Overview

Package util contains utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error)

Fatal prints err to stderr and exits the process with exit code 1.

func Rand

func Rand(rand io.Reader, max int64) (int64, error)

Rand returns a uniform random value in [0, max). It panics if max <= 0.

func Usage

func Usage(synopsis string)

Usage prints the usage of the running command with synopsis and the defined options from the flag package to stderr and exits with error code 1.

Types

This section is empty.

Directories

Path Synopsis
Package email contains email related functions.
Package email contains email related functions.

Jump to

Keyboard shortcuts

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