File: databpstack.go

package info (click to toggle)
delve 1.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 15,084 kB
  • sloc: ansic: 111,947; sh: 194; asm: 147; makefile: 43; python: 23
file content (25 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main

import (
	"fmt"
	//
)

func f() {
	w := 0

	g(1000, &w) // Position 0
}

func g(cnt int, p *int) {
	if cnt == 0 {
		*p = 10
		return // Position 1
	}
	g(cnt-1, p)
}

func main() {
	f()
	fmt.Printf("done\n") // Position 2
}