Node Structure representing the linkedlist node. This node is shared across different implementations.
| 3 | // Node Structure representing the linkedlist node. |
| 4 | // This node is shared across different implementations. |
| 5 | type Node[T any] struct { |
| 6 | Val T |
| 7 | Prev *Node[T] |
| 8 | Next *Node[T] |
| 9 | } |
| 10 | |
| 11 | // Create new node. |
| 12 | func NewNode[T any](val T) *Node[T] { |
nothing calls this directly
no outgoing calls
no test coverage detected