common

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Unlicense Imports: 5 Imported by: 1

README

common

GoDoc codecov

Welcome to things. Here are some of the aforementioned:


Dependencies

skeeto's amazing RNG for optimized entropy is the sole dependency save for stdlib++.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(n int) int

Abs will give you the positive version of a negative integer, quickly.

func BytesToFloat64 added in v0.5.3

func BytesToFloat64(bytes []byte) float64

BytesToFloat64 will take a slice of bytes and convert it to a float64 type.

func Float64ToBytes added in v0.5.3

func Float64ToBytes(f float64) []byte

Float64ToBytes will take a float64 type and convert it to a slice of bytes.

func Fprint

func Fprint(w io.Writer, s string)

Fprint is fmt.Fprint with error handling.

func Fprintf added in v0.7.3

func Fprintf(w io.Writer, format string, items ...any)

Fprintf is fmt.Fprintf with error handling.

Types

type Dialer added in v0.9.3

type Dialer interface {
	Dial(network, address string) (net.Conn, error)
}

Dialer is an interface that should exist in stdlib honestly. Make it make sense that it doesn't.

Directories

Path Synopsis
Package list implements a locking list.l
Package list implements a locking list.l
Package xerrors provides a stack of multiple errors that can be pushed to, popped from, and concatenated.
Package xerrors provides a stack of multiple errors that can be pushed to, popped from, and concatenated.

Jump to

Keyboard shortcuts

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