Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1995parham/linkedlist
/ types & classes
Types & classes
9 in github.com/1995parham/linkedlist
⨍
Functions
59
◇
Types & classes
9
Interface
Comparable
Comparable is a recursive generic constraint (Go 1.26) that requires types to be comparable with themselves.
pkg/list/sorted.go:10
TypeAlias
Int
Int demonstrates implementing Comparable[C Comparable[C]] (Go 1.26 recursive generics).
main.go:11
TypeAlias
Int
pkg/list/sorted_test.go:8
Interface
Linker
pkg/list/node.go:3
Struct
List
pkg/list/list.go:9
Interface
Node
Node interface defines an interface for nodes in the linked list so we can iterate them easier.
pkg/list/node.go:9
Struct
SortedList
SortedList is a linked list that maintains elements in ascending order. It uses the Go 1.26 recursive generic type feature to constrain T to types tha
pkg/list/sorted.go:17
Struct
endNode
endNode indicates end of the linked list and it will reduce our checks by automatically handles the edge conditions.
pkg/list/node.go:51
Struct
node
pkg/list/node.go:17