aocutil

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AOCFinish

func AOCFinish[T any](parts ...T)

func Atoi added in v0.1.4

func Atoi(str string) int

func CheckBit

func CheckBit[T constraints.Integer](value, index T) bool

func Clamp

func Clamp[T constraints.Ordered](value, lower, upper T) T

func ClampLower

func ClampLower[T constraints.Ordered](value, lower T) T

func ClampUpper

func ClampUpper[T constraints.Ordered](value, upper T) T

func ClearBit

func ClearBit[T constraints.Integer](value T, index T) T

func FileReadAll

func FileReadAll[T string | []byte](path string) T

func FileReadAllLines

func FileReadAllLines(path string, f func(string))

func GetMD5Hash

func GetMD5Hash(text string) string

func IsHexChar

func IsHexChar[T byte | rune](c T) bool

func IsHexString

func IsHexString(s string) bool

func Max added in v0.1.3

func Max[T constraints.Ordered](left, right T) T

func Min added in v0.1.3

func Min[T constraints.Ordered](left, right T) T

func SetBit

func SetBit[T constraints.Integer](value T, index T) T

func ToggleBit

func ToggleBit[T constraints.Integer](value T, index T) T

func Xor

func Xor[T constraints.Integer](left, right T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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