go-github-rest-api

module
v0.0.0-...-2505147 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2022 License: MIT

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 using deepmap/oapi-codegen.

This project aims to ensure that keep up with the latest API updates and keep the Go Client available.

Example

package main

import (
	"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 is well known Go client library for accessing the GitHub API v3.

Directories

Path Synopsis
Package github provides primitives to interact with the openapi HTTP API.
Package github provides primitives to interact with the openapi HTTP API.
internal
gen command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL