Go to file
kayos@tcp.direct 25ae455041
Update README.md
2022-12-31 10:53:41 -08:00
.github Create dependabot.yml 2022-07-13 01:09:58 -07:00
entropy Fix[entropy]: fix `OneInA` function 2022-12-11 12:02:46 -08:00
hash Performance and testing improvements 2022-08-22 06:14:08 -07:00
linux Debloat: we're not v1 yet so I can do this (remove network) 2022-12-31 10:52:36 -08:00
pool Debloat: Get rid of zerolog dependency 2022-11-22 13:33:08 -08:00
squish Paranoid checks 2022-08-25 04:11:02 -07:00
.gitignore Update .gitignore 2022-12-31 10:53:03 -08:00
LICENSE Make godoc happy.. harder 2022-01-01 23:48:31 -08:00
README.md Update README.md 2022-12-31 10:53:41 -08:00
common_test.go Coverage: fix regression 2022-09-28 01:20:56 -07:00
go.mod Debloat: we're not v1 yet so I can do this (remove network) 2022-12-31 10:52:36 -08:00
go.sum Debloat: we're not v1 yet so I can do this (remove network) 2022-12-31 10:52:36 -08:00
util.go Debloat: Get rid of zerolog dependency 2022-11-22 13:33:08 -08:00

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.