summaryrefslogtreecommitdiff
path: root/queries/go.scm
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 00:35:39 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 00:35:39 +0100
commit52040cc19cbdca48f91d4eb91e9b7a782bb5fbd0 (patch)
tree8c6a61f5a6db99c4c7a663e1e2c0f069c3794c4b /queries/go.scm
parent8ab1da7853f6dd309f2d3677ca109737f929ab4a (diff)
downloadcrep-52040cc19cbdca48f91d4eb91e9b7a782bb5fbd0.tar.gz
Add Rust, Go and rename examples to tests
Diffstat (limited to 'queries/go.scm')
-rw-r--r--queries/go.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/queries/go.scm b/queries/go.scm
new file mode 100644
index 0000000..c4b10db
--- /dev/null
+++ b/queries/go.scm
@@ -0,0 +1,5 @@
+(function_declaration "func" @ftype name: (identifier) @fname parameters: (parameter_list) @fparams)
+(method_declaration "func" @ftype receiver: (parameter_list) @fparams name: (field_identifier) @fname)
+(type_declaration "type" @ftype (type_spec name: (type_identifier) @fname type: (struct_type) @fparams))
+(type_declaration "type" @ftype (type_spec name: (type_identifier) @fname type: (interface_type) @fparams))
+(const_declaration "const" @ftype (const_spec name: (identifier) @fname))