Debian Codegraph @

tools/metadata/testdata/update-go/valid/github/a.go

raw
1 package github
2
3 type AService struct{}
4
5 // Get gets an A
6 //
7 //meta:operation GET /a/{non-canonical-id}
8 func (s *AService) Get() {}
9
10 // Undocumented uses an undocumented operation
11 //
12 //meta:operation GET /undocumented/{undocumented_id}
13 func (s *AService) Undocumented() {}
14
15 // OutdatedLinks has links that are outdated or wrong
16 //
17 // GitHub API docs: https://docs.github.com/rest/a/a#get-a
18 // GitHub API docs: https://example.com
19 // Note: Undocumented uses the undocumented GitHub API endpoint "GET /undocumented/{undocumented_id}".
20 //
21 //meta:operation post a/{a_id}
22 func (s *AService) OutdatedLinks() {}
23
24 //meta:operation GET /a/{a_id}
25 func (s *AService) Uncommented() {}
26
27 func (s *AService) unexported() {}
28
29 func NotAMethod() {}
30
31 type internalService struct{}
32
33 func (i *internalService) Get() {}