sdk/golang/Standard Library/GoContainerList
Standard Library

GoContainerList

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

Other Methods

.Element.Next()Neutral
#
Signature
Element.Next() *Element

Next returns the next list element or nil.

.Element.Prev()Neutral
#
Signature
Element.Prev() *Element

Prev returns the previous list element or nil.

.List.Back()Neutral
#
Signature
List.Back() *Element

Back returns the last element of list l or nil if the list is empty.

.List.Front()Neutral
#
Signature
List.Front() *Element

Front returns the first element of list l or nil if the list is empty.

.List.Init()Neutral
#
Signature
List.Init() *List

Init initializes or clears list l.

.List.InsertAfter()Neutral
#
Signature
List.InsertAfter(v any, mark *Element) *Element

InsertAfter inserts a new element e with value v immediately after mark and returns e.

.List.InsertBefore()Neutral
#
Signature
List.InsertBefore(v any, mark *Element) *Element

InsertBefore inserts a new element e with value v immediately before mark and returns e.

.List.Len()Neutral
#
Signature
List.Len() int

Len returns the number of elements of list l.

.List.MoveAfter()Neutral
#
Signature
List.MoveAfter(e *Element, mark *Element)

MoveAfter moves element e to its new position after mark.

.List.MoveBefore()Neutral
#
Signature
List.MoveBefore(e *Element, mark *Element)

MoveBefore moves element e to its new position before mark.

Fully-Qualified Names

FQNField
container/listfqns[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 ...  # container/list