Skip to content

Commit c8a6b24

Browse files
tbpghiranya911
authored andcommitted
Support Go 1.6 (#120)
* all: use golang.org/x/net/context * internal: use ctxhttp to use /x/ context The 1.6 Request type doesn't have WithContext. * all: don't use subtests to keep 1.6 compatibility * integration: use float64 for fields with exp value Values like -7e+07 cannot be parsed into ints in Go 1.6. So, use floats instead. * integration/messaging: use t.Fatal not log.Fatal * travis: add 1.6.x * changelog: mention addition of 1.6 support * readme: mention go version support
1 parent f3f06d3 commit c8a6b24

25 files changed

+12
-24
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Admin Go SDK enables access to Firebase services from privileged environments
2020
(such as servers or cloud) in Go. Currently this SDK provides
2121
Firebase custom authentication support.
2222

23+
Go versions >= 1.6 are supported.
24+
2325
For more information, visit the
2426
[Firebase Admin SDK setup guide](https://firebase.google.com/docs/admin/setup/).
2527

auth/auth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package auth
1717

1818
import (
19-
"context"
2019
"crypto/rsa"
2120
"encoding/json"
2221
"errors"

auth/auth_appengine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package auth
1818

1919
import (
20-
"context"
20+
"golang.org/x/net/context"
2121

2222
"google.golang.org/appengine"
2323
)

auth/auth_std.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package auth // import "firebase.google.com/go/auth"
1818

19-
import "context"
19+
import "golang.org/x/net/context"
2020

2121
func newSigner(ctx context.Context) (signer, error) {
2222
return serviceAcctSigner{}, nil

auth/auth_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package auth
1616

1717
import (
18-
"context"
1918
"encoding/json"
2019
"errors"
2120
"fmt"

auth/user_mgt.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package auth
1616

1717
import (
18-
"context"
1918
"encoding/json"
2019
"fmt"
2120
"net/http"

auth/user_mgt_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package auth
1616

1717
import (
1818
"bytes"
19-
"context"
2019
"encoding/json"
2120
"fmt"
2221
"io/ioutil"

firebase.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package firebase // import "firebase.google.com/go"
1919

2020
import (
21-
"context"
2221
"encoding/json"
2322
"errors"
2423
"io/ioutil"

firebase_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package firebase
1616

1717
import (
18-
"context"
1918
"fmt"
2019
"io/ioutil"
2120
"log"

iid/iid.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package iid // import "firebase.google.com/go/iid"
1717

1818
import (
19-
"context"
2019
"errors"
2120
"fmt"
2221
"net/http"

0 commit comments

Comments
 (0)