Documentation ¶
Index ¶
- func MustNewEbitenImageFromFile(path string) *ebiten.Image
- func SliceCut(arr []int, idx int) []int
- func SliceCutZeros(arr []int) []int
- func SliceInsert(arr []int, idx int, val int) []int
- func SliceIntOrderedFindIdx(arr []int, val int) (int, bool)
- func SliceStringFindIdx(arr []string, val string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewEbitenImageFromFile ¶
func MustNewEbitenImageFromFile(path string) *ebiten.Image
func SliceCutZeros ¶
func SliceIntOrderedFindIdx ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.