hugolib: Use stdlib context package

This commit is contained in:
Gregorio Martinez authored and Bjørn Erik Pedersen committed 2018-10-03 14:59:35 +02:00
1 parent fae48d7457
commit 4b4af2c52e
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -14,13 +14,11 @@
package hugolib
import (
"context"
"fmt"
"math"
"runtime"
// Use this until errgroup gets ported to context
// See https://github.com/golang/go/issues/19781
"golang.org/x/net/context"
"golang.org/x/sync/errgroup"
)
+1 -1
View File
@@ -14,6 +14,7 @@
package hugolib
import (
"context"
"errors"
"fmt"
"html/template"
@@ -43,7 +44,6 @@ import (
"github.com/gohugoio/hugo/media"
"github.com/markbates/inflect"
"golang.org/x/net/context"
"github.com/fsnotify/fsnotify"
bp "github.com/gohugoio/hugo/bufferpool"