aboutsummaryrefslogtreecommitdiff
path: root/testdata/samplepkg/sample.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-27 07:13:17 +0000
committerFuwn <[email protected]>2026-02-27 07:13:17 +0000
commit856e2994722e2e7f67b47d55b8e673ddabcebe83 (patch)
tree5a4e108384038eaa072d8e6c5f71ab68901fb431 /testdata/samplepkg/sample.go
downloadkivia-856e2994722e2e7f67b47d55b8e673ddabcebe83.tar.xz
kivia-856e2994722e2e7f67b47d55b8e673ddabcebe83.zip
feat: Initial commitHEADmain
Diffstat (limited to 'testdata/samplepkg/sample.go')
-rw-r--r--testdata/samplepkg/sample.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/testdata/samplepkg/sample.go b/testdata/samplepkg/sample.go
new file mode 100644
index 0000000..ff80b69
--- /dev/null
+++ b/testdata/samplepkg/sample.go
@@ -0,0 +1,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
+}