gogetautil

package
v0.0.0-...-aacbedc Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewEbitenImageFromFile

func MustNewEbitenImageFromFile(path string) *ebiten.Image

func SliceCut

func SliceCut(arr []int, idx int) []int

func SliceCutZeros

func SliceCutZeros(arr []int) []int

func SliceInsert

func SliceInsert(arr []int, idx int, val int) []int

func SliceIntOrderedFindIdx

func SliceIntOrderedFindIdx(arr []int, val int) (int, bool)

SliceIntOrderedFindIdx returns the index of match the searched val, if not found it will returns the index of the val closest and greater to the searched val. The input array MUST be SORTED. TODO: create unit test

func SliceStringFindIdx

func SliceStringFindIdx(arr []string, val string) int

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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