You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kayos@tcp.direct 02695f44bd
CI: add race detector
2 weeks ago
.github CI: add race detector 2 weeks ago
entropy Fix[entropy]: fix `OneInA` function 2 months ago
hash Performance and testing improvements 6 months ago
linux Debloat: we're not v1 yet so I can do this (remove network) 1 month ago
pool Feat[pool]: add NewSizedBufferFactory 2 weeks ago
squish Paranoid checks 5 months ago
.gitignore Update .gitignore 1 month ago
LICENSE Make godoc happy.. harder 1 year ago
README.md Update README.md 1 month ago
common_test.go Coverage: fix regression 4 months ago
go.mod Debloat: we're not v1 yet so I can do this (remove network) 1 month ago
go.sum Debloat: we're not v1 yet so I can do this (remove network) 1 month ago
util.go Debloat: Get rid of zerolog dependency 2 months ago

README.md

common

GoDoc codecov

Welcome to things. Here are some of the aforementioned:

base

import "git.tcp.direct/kayos/common"

Base Module

func Abs

func Abs(n int) int

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

func BytesToFloat64

func BytesToFloat64(bytes []byte) float64

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

func Float64ToBytes

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.