coreindexes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 0 Imported by: 11

Documentation

Index

Constants

View Source
const (
	First   = 0
	Second  = 1
	Third   = 2
	Fourth  = 3
	Fifth   = 4
	Sixth   = 5
	Seventh = 6
	Eighth  = 7
	Ninth   = 8
	Tenth   = 9
	I0      = 0
	I1      = 1
	I2      = 2
	I3      = 3
	I4      = 4
	I5      = 5
	I6      = 6
	I7      = 7
	I8      = 8
	I9      = 9
	I10     = 10
	I11     = 11
	I12     = 12
	I13     = 13
	I14     = 14
	I15     = 15
	I16     = 16
	I17     = 17
	I18     = 18
	I19     = 19
	I20     = 20
)

Variables

This section is empty.

Functions

func HasIndex added in v0.2.0

func HasIndex(indexes []int, currentIndex int) bool

func HasIndexPlusRemoveIndex added in v0.2.0

func HasIndexPlusRemoveIndex(indexes []int, currentIndex int) bool

func IsWithinIndexRange added in v0.9.8

func IsWithinIndexRange(index, length int) bool

func LastIndex added in v0.9.8

func LastIndex(length int) int

func Of added in v0.2.0

func Of(indexes []int, currentIndex int) int

func SafeEndingIndex added in v0.8.5

func SafeEndingIndex(length, lastTakingIndex int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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