Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ Array
Struct
Array
structure/stack/stackarray.go:12–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
package
stack
11
12
type
Array[T any]
struct
{
13
elements []T
14
}
15
16
// NewStack creates and returns a new stack.
17
func
NewStack[T any]() *Array[T] {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected