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"
"time"
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/parser"
"github.com/spf13/cast"
"github.com/spf13/cobra"
)
var outputDir string

View file

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

View file

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

View file

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

View file

@ -38,15 +38,15 @@ import (
"regexp"
"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/helpers"
"github.com/gohugoio/hugo/hugolib"
"github.com/gohugoio/hugo/livereload"
"github.com/gohugoio/hugo/utils"
"github.com/gohugoio/hugo/watcher"
"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/spf13/fsync"
jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/nitro"
"github.com/spf13/viper"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -18,8 +18,8 @@ import (
"strings"
"sync"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/config"
"github.com/spf13/cast"
)
// 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/spf13/afero"
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/spf13/viper"
)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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.