Permalink
Browse files

Run gofmt to get imports in line vs gohugoio/hugo

  • Loading branch information...
bep committed Jun 13, 2017
1 parent f503d76 commit 873a6f18851bcda79d562ff6c02e1109e8e31a88
Showing with 67 additions and 67 deletions.
  1. +2 −2 commands/convert.go
  2. +2 −2 commands/gendoc.go
  3. +1 −1 commands/gendocshelper.go
  4. +2 −2 commands/genman.go
  5. +3 −3 commands/hugo.go
  6. +3 −3 commands/import_jekyll.go
  7. +1 −1 commands/list.go
  8. +2 −2 commands/new.go
  9. +1 −1 commands/release.go
  10. +2 −2 commands/server.go
  11. +1 −1 commands/undraft.go
  12. +2 −2 commands/version.go
  13. +2 −2 create/content.go
  14. +1 −1 create/content_test.go
  15. +2 −2 helpers/content.go
  16. +1 −1 helpers/content_renderer.go
  17. +1 −1 helpers/emoji_test.go
  18. +1 −1 helpers/general.go
  19. +1 −1 helpers/language.go
  20. +1 −1 helpers/path_test.go
  21. +1 −1 hugofs/fs.go
  22. +1 −1 hugolib/case_insensitive_test.go
  23. +1 −1 hugolib/config.go
  24. +1 −1 hugolib/disableKinds_test.go
  25. +1 −1 hugolib/hugo_sites_build_test.go
  26. +1 −1 hugolib/multilingual.go
  27. +2 −2 hugolib/page.go
  28. +1 −1 hugolib/page_test.go
  29. +2 −2 hugolib/site.go
  30. +1 −1 hugolib/site_output.go
  31. +1 −1 hugolib/site_sections.go
  32. +1 −1 hugolib/testhelpers_test.go
  33. +1 −1 i18n/i18n.go
  34. +1 −1 i18n/i18n_test.go
  35. +1 −1 i18n/translationProvider.go
  36. +1 −1 source/filesystem.go
  37. +1 −1 tpl/collections/collections.go
  38. +1 −1 tpl/collections/sort.go
  39. +1 −1 tpl/data/cache.go
  40. +1 −1 tpl/data/resources.go
  41. +1 −1 tpl/data/resources_test.go
  42. +1 −1 tpl/images/images.go
  43. +2 −2 tpl/images/images_test.go
  44. +1 −1 tpl/lang/lang.go
  45. +1 −1 tpl/os/os.go
  46. +1 −1 tpl/os/os_test.go
  47. +1 −1 tpl/safe/safe.go
  48. +1 −1 tpl/strings/strings.go
  49. +1 −1 tpl/tplimpl/template.go
  50. +1 −1 tpl/tplimpl/template_funcs_test.go
  51. +1 −1 tpl/transform/transform.go
  52. +1 −1 tpl/urls/urls.go
View
@@ -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
@@ -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"
)
@@ -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
@@ -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
@@ -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"
@@ -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
@@ -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
@@ -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
@@ -16,8 +16,8 @@
package commands
import (
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/releaser"
"github.com/spf13/cobra"
)
func init() {
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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"
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
@@ -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
@@ -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"
)
@@ -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"
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
@@ -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"
Oops, something went wrong.

0 comments on commit 873a6f1

Please sign in to comment.