Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Add package-scope Call function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Johnson committed Nov 15, 2014
1 parent f81fe12 commit e0a3a12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ var APIBaseURL = &url.URL{
// DefaultClient is the default API client.
var DefaultClient = &Client{}

// Call issues a GET request to the specified endpoint, which make be either a
// relative or absolute URL.
func Call(endpoint string, v interface{}) (*Metadata, error) {
return DefaultClient.Call(endpoint, v)
}

// Client represents an EVE API client. The zero value for Client is a full
// usable API client without any access flags.
type Client struct {
Expand Down

0 comments on commit e0a3a12

Please sign in to comment.