Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1995parham/linkedlist
/ newNode
Function
newNode
pkg/list/node.go:22–27 ·
view source on GitHub ↗
(data T)
Source
from the content-addressed store, hash-verified
20
type
node[T any]
struct
{
21
Data T
22
Next Node[T]
23
}
24
25
func
newNode[T any](data T) *node[T] {
26
return
&node[T]{
27
Data: data,
28
Next: nil,
29
}
30
}
Callers
3
Insert
Method · 0.85
PushFront
Method · 0.85
PushBack
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected