Get returns information about GitHub.com, the service. Or, if you access this endpoint on your organization’s GitHub Enterprise installation, this endpoint provides information about that installation. GitHub API docs: https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-github-meta-inf
(ctx context.Context)
| 118 | // |
| 119 | //meta:operation GET /meta |
| 120 | func (s *MetaService) Get(ctx context.Context) (*APIMeta, *Response, error) { |
| 121 | req, err := s.client.NewRequest(ctx, "GET", "meta", nil) |
| 122 | if err != nil { |
| 123 | return nil, nil, err |
| 124 | } |
| 125 | |
| 126 | var meta *APIMeta |
| 127 | resp, err := s.client.Do(req, &meta) |
| 128 | if err != nil { |
| 129 | return nil, resp, err |
| 130 | } |
| 131 | |
| 132 | return meta, resp, nil |
| 133 | } |
| 134 | |
| 135 | // APIMeta returns information about GitHub.com. |
| 136 | // |