hugolib: Use stdlib context package - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 4b4af2c52e658d516dd4bfaf59fef4f054dabec3
DIR parent fae48d7457de96969ec53349194dcbfa45adc269
HTML Author: Gregorio Martinez <greg@gmartinez.com>
Date: Mon, 1 Oct 2018 22:08:10 -0400
hugolib: Use stdlib context package
Diffstat:
M hugolib/page_bundler.go | 4 +---
M hugolib/site.go | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
---
DIR diff --git a/hugolib/page_bundler.go b/hugolib/page_bundler.go
@@ -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"
)
DIR diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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"