Skip to content

Commit

Permalink
Run gofmt to get imports in line vs gohugoio/hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jun 13, 2017
1 parent f503d76 commit 873a6f1
Show file tree
Hide file tree
Showing 52 changed files with 67 additions and 67 deletions.
4 changes: 2 additions & 2 deletions commands/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions commands/gendoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion commands/gendocshelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"os"
"path/filepath"

"github.com/spf13/cobra"
"github.com/gohugoio/hugo/docshelper"
"github.com/spf13/cobra"
)

type genDocsHelper struct {
Expand Down
4 changes: 2 additions & 2 deletions commands/genman.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions commands/import_jekyll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion commands/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions commands/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion commands/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
package commands

import (
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/releaser"
"github.com/spf13/cobra"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion commands/undraft.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"os"
"time"

"github.com/spf13/cobra"
"github.com/gohugoio/hugo/parser"
"github.com/spf13/cobra"
)

var undraftCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions create/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion create/content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions helpers/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion helpers/content_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion helpers/emoji_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion helpers/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion helpers/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion helpers/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion hugofs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion hugolib/case_insensitive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion hugolib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion hugolib/disableKinds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hugolib/hugo_sites_build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion hugolib/multilingual.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions hugolib/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion hugolib/page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion hugolib/site_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion hugolib/site_sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion hugolib/testhelpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 873a6f1

Please sign in to comment.