github.com/crosbymichael/octokat@v0.0.0-20160826194511-076a32289ed5/octokat.go (about)

     1  package octokat
     2  
     3  import (
     4  	"net/http"
     5  )
     6  
     7  const (
     8  	GitHubURL          = "https://github.com"
     9  	GitHubAPIURL       = "https://api.github.com"
    10  	UserAgent          = "Octokat Go " + Version
    11  	MediaType          = "application/vnd.github.beta+json"
    12  	DefaultContentType = "application/json"
    13  	PreviewMediaType   = "application/vnd.github.manifold-preview"
    14  	Version            = "0.3.0"
    15  )
    16  
    17  func NewClient() *Client {
    18  	return &Client{BaseURL: GitHubAPIURL, httpClient: &http.Client{}}
    19  }