Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johejo/go-github-rest-api
Auto Generated GitHub's v3 REST API Client for Go
https://github.com/johejo/go-github-rest-api
github go golang openapi
Last synced: 18 days ago
JSON representation
Auto Generated GitHub's v3 REST API Client for Go
- Host: GitHub
- URL: https://github.com/johejo/go-github-rest-api
- Owner: johejo
- License: mit
- Created: 2022-05-14T15:24:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T06:40:00.000Z (over 2 years ago)
- Last Synced: 2024-06-21T18:55:06.118Z (7 months ago)
- Topics: github, go, golang, openapi
- Language: Go
- Homepage:
- Size: 768 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-github-rest-api
Auto Generated GitHub's v3 REST API Client for Go
## Description
This package was generated from [GitHub's REST API OpenAPI Description](https://github.com/github/rest-api-description) using [deepmap/oapi-codegen](https://github.com/deepmap/oapi-codegen).
This project aims to ensure that keep up with the latest API updates and keep the Go Client available.
## Example
```go
package mainimport (
"context"
"fmt"
"log""github.com/johejo/go-github-rest-api/github"
)func main() {
c, err := github.NewClientWithResponses("https://api.github.com")
if err != nil {
log.Fatal(err)
}
ctx := context.Background()
resp, err := c.ReposgetWithResponse(ctx, "golang", "go")
if err != nil {
log.Fatal(err)
}
fmt.Println(resp.JSON200.FullName)
}
```## Other
[google/go-github](https://github.com/google/go-github) is well known Go client library for accessing the GitHub API v3.