Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ NewNode
Function
NewNode
structure/linkedlist/shared.go:12–14 ·
view source on GitHub ↗
Create new node.
(val T)
Source
from the content-addressed store, hash-verified
10
11
// Create new node.
12
func
NewNode[T any](val T) *Node[T] {
13
return
&Node[T]{val, nil, nil}
14
}
Callers
4
AddAtBeg
Method · 0.70
AddAtEnd
Method · 0.70
Add
Method · 0.70
insertValue
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected