split

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: ISC Imports: 2 Imported by: 0

Documentation

Overview

Package split provides a simple string splitting utility for use with CompleteMessage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpaceIndexed

func SpaceIndexed(text string, offset int) ([]string, int)

SpaceIndexed returns a splitted string with the current index that CompleteMessage wants. The text is the entire input string and the offset is where the cursor currently is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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