github

package
v0.0.0-...-52e37cf Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const IssuesURL = "https://api.github.com/search/issues"

IssuesURL is the public github url for the issue search api

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Number    int
	HTMLURL   string `json:"html_url"`
	Title     string
	State     string
	User      *User
	CreatedAt time.Time `json:"created_at"`
	Body      string
}

Issue represents one github issue

type IssuesSearchResult

type IssuesSearchResult struct {
	TotalCount int `json:"total_count"`
	Items      []*Issue
}

IssuesSearchResult has the important info from a github issues search response

func SearchIssues

func SearchIssues(terms []string) (*IssuesSearchResult, error)

SearchIssues searches for github issues based on the search terms

func SearchIssues2

func SearchIssues2(terms []string) (*IssuesSearchResult, error)

SearchIssues2 searches for github issues based on the search terms

type User

type User struct {
	Login   string
	HTMLURL string `json:"html_url"`
}

User represents a user

Jump to

Keyboard shortcuts

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