github

package
v0.0.0-...-c4986e2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

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

IssueURL is GitHub API URL for searching issues.

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 required fields of GitHub issue.

type IssuesSearchResult

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

IssuesSearchResult is slice of GitHub issues returned by response.

func SearchIssues

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

SearchIssues searches issues on GitHub according to provided terms.

type User

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

User represents required fields of GitHub user.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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