sdk/golang/Standard Library/GoIndexSuffixarray
Standard Library

GoIndexSuffixarray

Go stdlib package — index/suffixarray. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Index.Bytes()Neutral
#
Signature
Index.Bytes() []byte

Bytes returns the data over which the index was created.

.Index.FindAllIndex()Neutral
#
Signature
Index.FindAllIndex(r *regexp.Regexp, n int) [][]int

FindAllIndex returns a sorted list of non-overlapping matches of the

.Index.Lookup()Neutral
#
Signature
Index.Lookup(s []byte, n int) []int

Lookup returns an unsorted list of at most n indices where the byte string s

.Index.Read()Neutral
#
Signature
Index.Read(r io.Reader) error

Read reads the index from r into x; x must not be nil.

.Index.Write()Neutral
#
Signature
Index.Write(w io.Writer) error

Write writes the index x to w.

.New()Neutral
#
Signature
New(data []byte) *Index

New creates a new Index for data.

.Index()Neutral
#
Signature
type Index ...

Index implements a suffix array for fast substring search.

Fully-Qualified Names

FQNField
index/suffixarrayfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # index/suffixarray