@@ -13,7 +13,7 @@ import (
13
13
// GistsService handles communication with the Gist related
14
14
// methods of the GitHub API.
15
15
//
16
- // GitHub API docs: http ://developer.github.com/v3/gists/
16
+ // GitHub API docs: https ://developer.github.com/v3/gists/
17
17
type GistsService service
18
18
19
19
// Gist represents a GitHub's gist.
@@ -92,7 +92,7 @@ type GistListOptions struct {
92
92
// is authenticated, it will returns all gists for the authenticated
93
93
// user.
94
94
//
95
- // GitHub API docs: http ://developer.github.com/v3/gists/#list-gists
95
+ // GitHub API docs: https ://developer.github.com/v3/gists/#list-gists
96
96
func (s * GistsService ) List (user string , opt * GistListOptions ) ([]* Gist , * Response , error ) {
97
97
var u string
98
98
if user != "" {
@@ -121,7 +121,7 @@ func (s *GistsService) List(user string, opt *GistListOptions) ([]*Gist, *Respon
121
121
122
122
// ListAll lists all public gists.
123
123
//
124
- // GitHub API docs: http ://developer.github.com/v3/gists/#list-gists
124
+ // GitHub API docs: https ://developer.github.com/v3/gists/#list-gists
125
125
func (s * GistsService ) ListAll (opt * GistListOptions ) ([]* Gist , * Response , error ) {
126
126
u , err := addOptions ("gists/public" , opt )
127
127
if err != nil {
@@ -144,7 +144,7 @@ func (s *GistsService) ListAll(opt *GistListOptions) ([]*Gist, *Response, error)
144
144
145
145
// ListStarred lists starred gists of authenticated user.
146
146
//
147
- // GitHub API docs: http ://developer.github.com/v3/gists/#list-gists
147
+ // GitHub API docs: https ://developer.github.com/v3/gists/#list-gists
148
148
func (s * GistsService ) ListStarred (opt * GistListOptions ) ([]* Gist , * Response , error ) {
149
149
u , err := addOptions ("gists/starred" , opt )
150
150
if err != nil {
@@ -167,7 +167,7 @@ func (s *GistsService) ListStarred(opt *GistListOptions) ([]*Gist, *Response, er
167
167
168
168
// Get a single gist.
169
169
//
170
- // GitHub API docs: http ://developer.github.com/v3/gists/#get-a-single-gist
170
+ // GitHub API docs: https ://developer.github.com/v3/gists/#get-a-single-gist
171
171
func (s * GistsService ) Get (id string ) (* Gist , * Response , error ) {
172
172
u := fmt .Sprintf ("gists/%v" , id )
173
173
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -203,7 +203,7 @@ func (s *GistsService) GetRevision(id, sha string) (*Gist, *Response, error) {
203
203
204
204
// Create a gist for authenticated user.
205
205
//
206
- // GitHub API docs: http ://developer.github.com/v3/gists/#create-a-gist
206
+ // GitHub API docs: https ://developer.github.com/v3/gists/#create-a-gist
207
207
func (s * GistsService ) Create (gist * Gist ) (* Gist , * Response , error ) {
208
208
u := "gists"
209
209
req , err := s .client .NewRequest ("POST" , u , gist )
@@ -221,7 +221,7 @@ func (s *GistsService) Create(gist *Gist) (*Gist, *Response, error) {
221
221
222
222
// Edit a gist.
223
223
//
224
- // GitHub API docs: http ://developer.github.com/v3/gists/#edit-a-gist
224
+ // GitHub API docs: https ://developer.github.com/v3/gists/#edit-a-gist
225
225
func (s * GistsService ) Edit (id string , gist * Gist ) (* Gist , * Response , error ) {
226
226
u := fmt .Sprintf ("gists/%v" , id )
227
227
req , err := s .client .NewRequest ("PATCH" , u , gist )
@@ -258,7 +258,7 @@ func (s *GistsService) ListCommits(id string) ([]*GistCommit, *Response, error)
258
258
259
259
// Delete a gist.
260
260
//
261
- // GitHub API docs: http ://developer.github.com/v3/gists/#delete-a-gist
261
+ // GitHub API docs: https ://developer.github.com/v3/gists/#delete-a-gist
262
262
func (s * GistsService ) Delete (id string ) (* Response , error ) {
263
263
u := fmt .Sprintf ("gists/%v" , id )
264
264
req , err := s .client .NewRequest ("DELETE" , u , nil )
@@ -270,7 +270,7 @@ func (s *GistsService) Delete(id string) (*Response, error) {
270
270
271
271
// Star a gist on behalf of authenticated user.
272
272
//
273
- // GitHub API docs: http ://developer.github.com/v3/gists/#star-a-gist
273
+ // GitHub API docs: https ://developer.github.com/v3/gists/#star-a-gist
274
274
func (s * GistsService ) Star (id string ) (* Response , error ) {
275
275
u := fmt .Sprintf ("gists/%v/star" , id )
276
276
req , err := s .client .NewRequest ("PUT" , u , nil )
@@ -282,7 +282,7 @@ func (s *GistsService) Star(id string) (*Response, error) {
282
282
283
283
// Unstar a gist on a behalf of authenticated user.
284
284
//
285
- // Github API docs: http ://developer.github.com/v3/gists/#unstar-a-gist
285
+ // Github API docs: https ://developer.github.com/v3/gists/#unstar-a-gist
286
286
func (s * GistsService ) Unstar (id string ) (* Response , error ) {
287
287
u := fmt .Sprintf ("gists/%v/star" , id )
288
288
req , err := s .client .NewRequest ("DELETE" , u , nil )
@@ -294,7 +294,7 @@ func (s *GistsService) Unstar(id string) (*Response, error) {
294
294
295
295
// IsStarred checks if a gist is starred by authenticated user.
296
296
//
297
- // GitHub API docs: http ://developer.github.com/v3/gists/#check-if-a-gist-is-starred
297
+ // GitHub API docs: https ://developer.github.com/v3/gists/#check-if-a-gist-is-starred
298
298
func (s * GistsService ) IsStarred (id string ) (bool , * Response , error ) {
299
299
u := fmt .Sprintf ("gists/%v/star" , id )
300
300
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -308,7 +308,7 @@ func (s *GistsService) IsStarred(id string) (bool, *Response, error) {
308
308
309
309
// Fork a gist.
310
310
//
311
- // GitHub API docs: http ://developer.github.com/v3/gists/#fork-a-gist
311
+ // GitHub API docs: https ://developer.github.com/v3/gists/#fork-a-gist
312
312
func (s * GistsService ) Fork (id string ) (* Gist , * Response , error ) {
313
313
u := fmt .Sprintf ("gists/%v/forks" , id )
314
314
req , err := s .client .NewRequest ("POST" , u , nil )
0 commit comments