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

@ -19,10 +19,10 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/cast"
"github.com/spf13/cobra"
) )
var outputDir string var outputDir string

View file

@ -20,10 +20,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -19,8 +19,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/docshelper" "github.com/gohugoio/hugo/docshelper"
"github.com/spf13/cobra"
) )
type genDocsHelper struct { type genDocsHelper struct {

View file

@ -17,10 +17,10 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -38,15 +38,15 @@ import (
"regexp" "regexp"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/spf13/fsync"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/livereload" "github.com/gohugoio/hugo/livereload"
"github.com/gohugoio/hugo/utils" "github.com/gohugoio/hugo/utils"
"github.com/gohugoio/hugo/watcher" "github.com/gohugoio/hugo/watcher"
"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/spf13/fsync"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/nitro" "github.com/spf13/nitro"
"github.com/spf13/viper" "github.com/spf13/viper"

View file

@ -25,13 +25,13 @@ import (
"strings" "strings"
"time" "time"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -16,8 +16,8 @@ package commands
import ( import (
"path/filepath" "path/filepath"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -22,13 +22,13 @@ import (
"strings" "strings"
"time" "time"
"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/create" "github.com/gohugoio/hugo/create"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/afero"
"github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -16,8 +16,8 @@
package commands package commands
import ( import (
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/releaser" "github.com/gohugoio/hugo/releaser"
"github.com/spf13/cobra"
) )
func init() { func init() {

View file

@ -24,10 +24,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/afero"
"github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -19,8 +19,8 @@ import (
"os" "os"
"time" "time"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/cobra"
) )
var undraftCmd = &cobra.Command{ var undraftCmd = &cobra.Command{

View file

@ -20,10 +20,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/kardianos/osext"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/kardianos/osext"
"github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -22,11 +22,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/afero"
"github.com/spf13/cast"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -27,9 +27,9 @@ import (
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/create" "github.com/gohugoio/hugo/create"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/afero"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -26,11 +26,11 @@ import (
"unicode/utf8" "unicode/utf8"
"github.com/chaseadamsio/goorgeous" "github.com/chaseadamsio/goorgeous"
bp "github.com/gohugoio/hugo/bufferpool"
"github.com/gohugoio/hugo/config"
"github.com/miekg/mmark" "github.com/miekg/mmark"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/russross/blackfriday" "github.com/russross/blackfriday"
bp "github.com/gohugoio/hugo/bufferpool"
"github.com/gohugoio/hugo/config"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"strings" "strings"

View file

@ -17,9 +17,9 @@ import (
"bytes" "bytes"
"html" "html"
"github.com/gohugoio/hugo/config"
"github.com/miekg/mmark" "github.com/miekg/mmark"
"github.com/russross/blackfriday" "github.com/russross/blackfriday"
"github.com/gohugoio/hugo/config"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -18,8 +18,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/kyokomi/emoji"
"github.com/gohugoio/hugo/bufferpool" "github.com/gohugoio/hugo/bufferpool"
"github.com/kyokomi/emoji"
) )
func TestEmojiCustom(t *testing.T) { func TestEmojiCustom(t *testing.T) {

View file

@ -26,8 +26,8 @@ import (
"unicode" "unicode"
"unicode/utf8" "unicode/utf8"
"github.com/spf13/cast"
bp "github.com/gohugoio/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/spf13/cast"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/pflag" "github.com/spf13/pflag"
) )

View file

@ -18,8 +18,8 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/cast"
) )
// These are the settings that should only be looked up in the global Viper // These are the settings that should only be looked up in the global Viper

View file

@ -29,8 +29,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -15,8 +15,8 @@
package hugofs package hugofs
import ( import (
"github.com/spf13/afero"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/afero"
) )
// Os points to an Os Afero file system. // Os points to an Os Afero file system.

View file

@ -19,9 +19,9 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -16,8 +16,8 @@ package hugolib
import ( import (
"fmt" "fmt"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/afero"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -18,8 +18,8 @@ import (
"fmt" "fmt"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"

View file

@ -13,11 +13,11 @@ import (
"github.com/fortytw2/leaktest" "github.com/fortytw2/leaktest"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/afero"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -21,9 +21,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
) )
type Multilingual struct { type Multilingual struct {

View file

@ -21,10 +21,10 @@ import (
"github.com/bep/gitmap" "github.com/bep/gitmap"
"github.com/mitchellh/mapstructure"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/gohugoio/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/mitchellh/mapstructure"
"html/template" "html/template"
"io" "io"
@ -36,9 +36,9 @@ import (
"time" "time"
"unicode/utf8" "unicode/utf8"
"github.com/spf13/cast"
bp "github.com/gohugoio/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/gohugoio/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/cast"
) )
var ( var (

View file

@ -25,9 +25,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -37,8 +37,6 @@ import (
"sync/atomic" "sync/atomic"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/spf13/afero"
"github.com/spf13/cast"
bp "github.com/gohugoio/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
@ -47,6 +45,8 @@ import (
"github.com/gohugoio/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/gohugoio/hugo/tpl" "github.com/gohugoio/hugo/tpl"
"github.com/gohugoio/hugo/transform" "github.com/gohugoio/hugo/transform"
"github.com/spf13/afero"
"github.com/spf13/cast"
"github.com/spf13/nitro" "github.com/spf13/nitro"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -18,10 +18,10 @@ import (
"path" "path"
"strings" "strings"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/cast"
) )
func createSiteOutputFormats(allFormats output.Formats, cfg config.Provider) (map[string]output.Formats, error) { func createSiteOutputFormats(allFormats output.Formats, cfg config.Provider) (map[string]output.Formats, error) {

View file

@ -19,8 +19,8 @@ import (
"strconv" "strconv"
"strings" "strings"
radix "github.com/hashicorp/go-immutable-radix"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
radix "github.com/hashicorp/go-immutable-radix"
) )
// Deprecated: Use .Site.Home.Sections. // Deprecated: Use .Site.Home.Sections.

View file

@ -9,9 +9,9 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/source" "github.com/gohugoio/hugo/source"

View file

@ -14,9 +14,9 @@
package i18n package i18n
import ( import (
"github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/nicksnyder/go-i18n/i18n/bundle"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -21,8 +21,8 @@ import (
"log" "log"
"github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/nicksnyder/go-i18n/i18n/bundle"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -16,9 +16,9 @@ package i18n
import ( import (
"fmt" "fmt"
"github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/nicksnyder/go-i18n/i18n/bundle"
) )
// TranslationProvider provides translation handling, i.e. loading // TranslationProvider provides translation handling, i.e. loading

View file

@ -21,8 +21,8 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/cast"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"golang.org/x/text/unicode/norm" "golang.org/x/text/unicode/norm"
) )

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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