MCPcopy Create free account
hub / github.com/ardanlabs/gotraining / stackCopy

Function stackCopy

topics/go/language/pointers/example5/example5.go:20–29  ·  view source on GitHub ↗

stackCopy recursively runs increasing the size of the stack. go:noinline

(s *string, c int, a [size]int)

Source from the content-addressed store, hash-verified

18// of the stack.
19//go:noinline
20func stackCopy(s *string, c int, a [size]int) {
21 println(c, s, *s)
22
23 c++
24 if c == 10 {
25 return
26 }
27
28 stackCopy(s, c, a)
29}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected