aboutsummaryrefslogtreecommitdiff
path: root/internal/api/testdata/examples.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/testdata/examples.go')
-rw-r--r--internal/api/testdata/examples.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/api/testdata/examples.go b/internal/api/testdata/examples.go
new file mode 100644
index 00000000..93baaa17
--- /dev/null
+++ b/internal/api/testdata/examples.go
@@ -0,0 +1,14 @@
+// Copyright 2026 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package examples
+
+// F is a function.
+func F() {}
+
+// T is a type.
+type T struct{}
+
+// M is a method.
+func (T) M() {}