Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(51)

Issue 5629060: code review 5629060: goauth2: update for Go 1 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by adg
Modified:
14 years, 4 months ago
Reviewers:
proppy, M-A
CC:
ality, golang-dev
Visibility:
Public.

Description

goauth2: update for Go 1

Patch Set 1 #

Patch Set 2 : diff -r 72aedee5f568 https://code.google.com/p/goauth2 #

Patch Set 3 : diff -r 72aedee5f568 https://code.google.com/p/goauth2 #

Patch Set 4 : diff -r 72aedee5f568 https://code.google.com/p/goauth2 #

Total comments: 6

Patch Set 5 : diff -r 72aedee5f568 https://code.google.com/p/goauth2 #

Patch Set 6 : diff -r 72aedee5f568 https://code.google.com/p/goauth2 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -40 lines) Patch
R oauth/Makefile View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
M oauth/example/buzz.go View 1 chunk +1 line, -1 line 0 comments Download
M oauth/oauth.go View 1 2 3 4 8 chunks +32 lines, -28 lines 2 comments Download

Messages

Total messages: 12
adg
Hello proppy, M-A (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/goauth2
14 years, 4 months ago (2012-02-05 12:56:54 UTC) #1
M-A
lgtm Do you mind incorporating the example change there: http://codereview.appspot.com/5632043/ ? It was slightly disheartening ...
14 years, 4 months ago (2012-02-05 13:21:21 UTC) #2
adg
I'd prefer to take your example change in a separate CL, if you don't mind. ...
14 years, 4 months ago (2012-02-05 13:24:50 UTC) #3
ality
adg@golang.org once said: > >Why use a named variable? > >tok.Expiry = &time.Now().Add(b.ExpiresIn * time.Second) ...
14 years, 4 months ago (2012-02-05 14:06:55 UTC) #4
M-A
On 2012/02/05 13:24:50, adg wrote: > I'd prefer to take your example change in a ...
14 years, 4 months ago (2012-02-05 14:13:30 UTC) #5
M-A
http://codereview.appspot.com/5629060/diff/6001/oauth/oauth.go File oauth/oauth.go (right): http://codereview.appspot.com/5629060/diff/6001/oauth/oauth.go#newcode187 oauth/oauth.go:187: return errors.New("no exisiting Token") existing
14 years, 4 months ago (2012-02-05 16:29:02 UTC) #6
adg
On 6 February 2012 01:06, Anthony Martin <ality@pbrane.org> wrote: > instead of checking for nil ...
14 years, 4 months ago (2012-02-05 22:33:07 UTC) #7
adg
http://codereview.appspot.com/5629060/diff/6001/oauth/oauth.go File oauth/oauth.go (right): http://codereview.appspot.com/5629060/diff/6001/oauth/oauth.go#newcode187 oauth/oauth.go:187: return errors.New("no exisiting Token") On 2012/02/05 16:29:02, M-A wrote: ...
14 years, 4 months ago (2012-02-05 22:33:12 UTC) #8
adg
*** Submitted as 4ee7c273e92e *** goauth2: update for Go 1 R=proppy, maruel, ality CC=golang-dev http://codereview.appspot.com/5629060
14 years, 4 months ago (2012-02-05 23:40:52 UTC) #9
M-A
http://codereview.appspot.com/5629060/diff/7002/oauth/oauth.go File oauth/oauth.go (right): http://codereview.appspot.com/5629060/diff/7002/oauth/oauth.go#newcode218 oauth/oauth.go:218: tok.Expiry = time.Unix(0, 0) Sadly, this won't trigger IsZero() ...
14 years, 4 months ago (2012-02-06 00:21:12 UTC) #10
ality
maruel@chromium.org once said: > http://codereview.appspot.com/5629060/diff/7002/oauth/oauth.go#newcode218 > oauth/oauth.go:218: tok.Expiry = time.Unix(0, 0) > Sadly, this won't ...
14 years, 4 months ago (2012-02-06 00:34:27 UTC) #11
proppy
14 years, 4 months ago (2012-02-06 11:23:37 UTC) #12
http://codereview.appspot.com/5629060/diff/7002/oauth/oauth.go
File oauth/oauth.go (right):

http://codereview.appspot.com/5629060/diff/7002/oauth/oauth.go#newcode218
oauth/oauth.go:218: tok.Expiry = time.Unix(0, 0)
On 2012/02/06 00:21:12, M-A wrote:
> Sadly, this won't trigger IsZero() at line 76.
> 
> "IsZero reports whether t represents the zero time instant, January 1, year 1,
> 00:00:00 UTC."

time.Time{}.IsZero() should work.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b