Go to file
kayos@tcp.direct 3d8d392d8b
Feat: Add new hash functions + Testing: improve coverage
2022-07-04 00:43:03 -07:00
.github/workflows Fix: github CI for go 1.18 2022-03-26 20:21:07 -07:00
entropy Feat: Add new hash functions + Testing: improve coverage 2022-07-04 00:43:03 -07:00
hash Feat: Add new hash functions + Testing: improve coverage 2022-07-04 00:43:03 -07:00
linux Feat: Add new hash functions + Testing: improve coverage 2022-07-04 00:43:03 -07:00
network Revert: Make packages independant 2022-05-15 15:52:37 -07:00
squish Feat: Add new hash functions + Testing: improve coverage 2022-07-04 00:43:03 -07:00
.gitignore Introduce new PRNG with drastically better performance 2022-03-15 20:39:22 -07:00
LICENSE Make godoc happy.. harder 2022-01-01 23:48:31 -08:00
README.md Update README.md 2022-05-29 22:36:31 -07:00
common_test.go Coverage: Fprint testing 2022-05-29 22:29:07 -07:00
go.mod Feat: Add new hash functions + Testing: improve coverage 2022-07-04 00:43:03 -07:00
go.sum Feat: Add new hash functions + Testing: improve coverage 2022-07-04 00:43:03 -07:00
util.go Add: Float64 byte slice conversions 2022-05-29 22:06:34 -07: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.