MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / SList

Struct SList

structure/stack/stacklinkedlistwithlist.go:18–20  ·  view source on GitHub ↗

SList is our struct that point to stack with container/list.List library

Source from the content-addressed store, hash-verified

16
17// SList is our struct that point to stack with container/list.List library
18type SList struct {
19 Stack *list.List
20}
21
22// Push add a value into our stack
23func (sl *SList) Push(val any) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected