aboutsummaryrefslogtreecommitdiff
path: root/testdata/samplepkg/sample.go
blob: ff80b6977493f56c8ee32ec04654d90158b10f98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package samplepkg

import "context"

type UserCfg struct {
	userNum int
}

func Handle(ctx context.Context, userNum int) int {
	resultVal := userNum + 1

	for idx, usr := range []string{"a", "b"} {
		_ = idx
		_ = usr
	}

	_ = ctx

	return resultVal
}