Run gofmt to get imports in line vs gohugoio/hugo

This commit is contained in:
Bjørn Erik Pedersen
2017-06-13 19:07:35 +02:00
parent f503d76a3b
commit 873a6f1885
52 changed files with 67 additions and 67 deletions

View File

@@ -23,9 +23,9 @@ import (
"strings"
"time"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
)
// New returns a new instance of the collections-namespaced template functions.

View File

@@ -19,8 +19,8 @@ import (
"sort"
"strings"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/tpl/compare"
"github.com/spf13/cast"
)
var comp = compare.New()

View File

@@ -18,9 +18,9 @@ import (
"net/url"
"sync"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/afero"
)
var cacheMu sync.RWMutex

View File

@@ -21,9 +21,9 @@ import (
"sync"
"time"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/afero"
jww "github.com/spf13/jwalterweatherman"
)

View File

@@ -23,11 +23,11 @@ import (
"testing"
"time"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View File

@@ -23,8 +23,8 @@ import (
_ "image/jpeg"
_ "image/png"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/spf13/cast"
)
// New returns a new instance of the images-namespaced template functions.

View File

@@ -22,10 +22,10 @@ import (
"path/filepath"
"testing"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View File

@@ -19,8 +19,8 @@ import (
"strconv"
"strings"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/spf13/cast"
)
// New returns a new instance of the lang-namespaced template functions.

View File

@@ -18,9 +18,9 @@ import (
"fmt"
_os "os"
"github.com/gohugoio/hugo/deps"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
)
// New returns a new instance of the os-namespaced template functions.

View File

@@ -18,9 +18,9 @@ import (
"path/filepath"
"testing"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View File

@@ -16,8 +16,8 @@ package safe
import (
"html/template"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
)
// New returns a new instance of the safe-namespaced template functions.

View File

@@ -20,9 +20,9 @@ import (
_strings "strings"
"unicode/utf8"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
)
// New returns a new instance of the strings-namespaced template functions.

View File

@@ -29,10 +29,10 @@ import (
"path/filepath"
"sync"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/tpl"
"github.com/spf13/afero"
)
const (

View File

@@ -24,7 +24,6 @@ import (
"log"
"os"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
@@ -32,6 +31,7 @@ import (
"github.com/gohugoio/hugo/i18n"
"github.com/gohugoio/hugo/tpl"
"github.com/gohugoio/hugo/tpl/internal"
"github.com/spf13/afero"
jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"

View File

@@ -18,9 +18,9 @@ import (
"html"
"html/template"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
)
// New returns a new instance of the transform-namespaced template functions.

View File

@@ -17,8 +17,8 @@ import (
"errors"
"html/template"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps"
"github.com/spf13/cast"
)
// New returns a new instance of the urls-namespaced template functions.