8 lines
176 B
Go
8 lines
176 B
Go
|
package templates
|
||
|
|
||
|
// NotLastElement returns true if an element of an array
|
||
|
// or a slice is not the last.
|
||
|
func NotLastElement(pos, length int) bool {
|
||
|
return pos < length-1
|
||
|
}
|