Use stdlib context

This commit is contained in:
Jack Christensen 2017-03-03 16:01:06 -06:00
parent 15b44f4096
commit 908c439317
7 changed files with 6 additions and 12 deletions

View File

@ -50,7 +50,6 @@ install:
- go get -u github.com/shopspring/decimal - go get -u github.com/shopspring/decimal
- go get -u gopkg.in/inconshreveable/log15.v2 - go get -u gopkg.in/inconshreveable/log15.v2
- go get -u github.com/jackc/fake - go get -u github.com/jackc/fake
- go get -u golang.org/x/net/context
- go get -u github.com/jackc/pgmock/pgmsg - go get -u github.com/jackc/pgmock/pgmsg
script: script:

View File

@ -1,6 +1,7 @@
package pgx package pgx
import ( import (
"context"
"crypto/md5" "crypto/md5"
"crypto/tls" "crypto/tls"
"encoding/binary" "encoding/binary"
@ -19,8 +20,6 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"golang.org/x/net/context"
"github.com/jackc/pgx/chunkreader" "github.com/jackc/pgx/chunkreader"
"github.com/jackc/pgx/pgtype" "github.com/jackc/pgx/pgtype"
) )

View File

@ -1,8 +1,8 @@
package pgx package pgx
import ( import (
"context"
"errors" "errors"
"golang.org/x/net/context"
"sync" "sync"
"time" "time"
) )

View File

@ -1,9 +1,9 @@
package pgx_test package pgx_test
import ( import (
"context"
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"golang.org/x/net/context"
"net" "net"
"os" "os"
"reflect" "reflect"

View File

@ -1,13 +1,12 @@
package pgx package pgx
import ( import (
"context"
"database/sql" "database/sql"
"errors" "errors"
"fmt" "fmt"
"time" "time"
"golang.org/x/net/context"
"github.com/jackc/pgx/pgtype" "github.com/jackc/pgx/pgtype"
) )

View File

@ -2,16 +2,14 @@ package pgx_test
import ( import (
"bytes" "bytes"
"context"
"database/sql" "database/sql"
"fmt" "fmt"
"strings" "strings"
"testing" "testing"
"time" "time"
"golang.org/x/net/context"
"github.com/jackc/pgx" "github.com/jackc/pgx"
"github.com/shopspring/decimal" "github.com/shopspring/decimal"
) )

View File

@ -1,6 +1,7 @@
package pgx_test package pgx_test
import ( import (
"context"
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
@ -9,8 +10,6 @@ import (
"testing" "testing"
"time" "time"
"golang.org/x/net/context"
"github.com/jackc/fake" "github.com/jackc/fake"
"github.com/jackc/pgx" "github.com/jackc/pgx"
) )