game_utils

package
v0.0.411 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlmostEqualFloat added in v0.0.6

func AlmostEqualFloat(a, b float64) bool

func Contains

func Contains[T comparable](s []T, e T) bool

func GetBigger

func GetBigger[T constraints.Ordered](a T, b T) T

func GetRandomIntUpTo added in v0.0.30

func GetRandomIntUpTo(max int) int

func GetSmaller

func GetSmaller[T constraints.Ordered](a T, b T) T

func PrintStruct

func PrintStruct(value any)

func PrintStructnWithLabel

func PrintStructnWithLabel(label string, value any)

func Remove

func Remove[T comparable](l []T, item T) []T

func StrArrContains

func StrArrContains(s []string, e string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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