MCPcopy Create free account
hub / github.com/mmcgrana/gobyexample / element

Struct element

examples/generics/generics.go:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32type element[T any] struct {
33 next *element[T]
34 val T
35}
36
37// We can define methods on generic types just like we
38// do on regular types, but we have to keep the type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected