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 }