Documentation
¶
Overview ¶
Package str_util contains basic string utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoComplete ¶
type AutoComplete struct { // Items are the candidates so far with most recently added items at the end. // Clients should not modify directly. Items []string // contains filtered or unexported fields }
AutoComplete keeps track of auto-complete candidates.
func (*AutoComplete) Add ¶
func (a *AutoComplete) Add(s string)
Add adds another auto-complete candidate. If a candidate that equals s, ignoring case, has already been added then s is not added again. Also if s is the empty string, it is not added.
Click to show internal directories.
Click to hide internal directories.