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.
|
2 weeks ago | |
---|---|---|
.github | 2 weeks ago | |
entropy | 2 months ago | |
hash | 6 months ago | |
linux | 1 month ago | |
pool | 2 weeks ago | |
squish | 5 months ago | |
.gitignore | 1 month ago | |
LICENSE | 1 year ago | |
README.md | 1 month ago | |
common_test.go | 4 months ago | |
go.mod | 1 month ago | |
go.sum | 1 month ago | |
util.go | 2 months ago |
README.md
common
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.