index

package
v0.0.0-...-8b68c8a Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index uint16

Index - position in a text

const Zero Index = 0

Zero - default Index value

func Append

func Append(i Index, v int) Index

Append adds an int valueInit safely

func Inc

func Inc(i Index) Index

Inc increments index

func MakeIndex

func MakeIndex(v int) Index

MakeIndex constructs an index object in a stack

func RandIndex

func RandIndex() Index

RandIndex returns random index (0 may be returned)

func (Index) Int

func (i Index) Int() int

Int converts Index to int valueInit

Jump to

Keyboard shortcuts

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