From 17e6197971fb0b9dffc15804411821517a6dad9a Mon Sep 17 00:00:00 2001 From: Billy Lynch Date: Thu, 1 Aug 2013 12:14:08 -0400 Subject: [PATCH] Various gofmt fixes from restructuring. --- github/activity.go | 2 +- github/git_commits.go | 2 +- github/issues.go | 2 +- github/repos_hooks.go | 14 +++++++------- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/github/activity.go b/github/activity.go index 886d06f..a8456ae 100644 --- a/github/activity.go +++ b/github/activity.go @@ -10,5 +10,5 @@ package github // // GitHub API docs: http://developer.github.com/v3/users/ type ActivityService struct { - client *Client + client *Client } diff --git a/github/git_commits.go b/github/git_commits.go index 1d26c6e..d042f4d 100644 --- a/github/git_commits.go +++ b/github/git_commits.go @@ -6,8 +6,8 @@ package github import ( - "time" "fmt" + "time" ) // Commit represents a GitHub commit. diff --git a/github/issues.go b/github/issues.go index 6b3256c..74182ee 100644 --- a/github/issues.go +++ b/github/issues.go @@ -6,9 +6,9 @@ package github import ( - "strconv" "fmt" "net/url" + "strconv" "strings" "time" ) diff --git a/github/repos_hooks.go b/github/repos_hooks.go index b2c8049..bf544b4 100644 --- a/github/repos_hooks.go +++ b/github/repos_hooks.go @@ -57,13 +57,13 @@ type WebHookAuthor struct { // Hook represents a GitHub (web and service) hook for a repository. type Hook struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Name string `json:"name,omitempty"` - Events []string `json:"events,omitempty"` - Active bool `json:"active,omitempty"` - Config map[string]interface{} `json:"config,omitempty"` - ID int `json:"id,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Name string `json:"name,omitempty"` + Events []string `json:"events,omitempty"` + Active bool `json:"active,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` + ID int `json:"id,omitempty"` } // CreateHook creates a Hook for the specified repository.