Skip to content

Commit

Permalink
run gofmt -s on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jul 1, 2019
1 parent a4f690b commit e349191
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cmd/darkroom/main.go
Expand Up @@ -3,12 +3,12 @@ package main
import (
"os"

"github.com/urfave/cli"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/logger"
"github.com/gojek/darkroom/pkg/router"
"github.com/gojek/darkroom/pkg/server"
"github.com/gojek/darkroom/pkg/service"
"github.com/urfave/cli"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion internal/handler/image.go
Expand Up @@ -2,8 +2,8 @@ package handler

import (
"fmt"
"net/http"
"github.com/gojek/darkroom/pkg/metrics"
"net/http"

"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/logger"
Expand Down
4 changes: 2 additions & 2 deletions internal/handler/image_test.go
Expand Up @@ -7,11 +7,11 @@ import (
"net/http/httptest"
"testing"

"github.com/gojek/darkroom/pkg/service"
"github.com/gojek/darkroom/pkg/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"github.com/gojek/darkroom/pkg/service"
"github.com/gojek/darkroom/pkg/storage"
)

type ImageHandlerTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Expand Up @@ -4,9 +4,9 @@ import (
"net/http"
"sync"

"github.com/gojek/darkroom/pkg/config"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"github.com/gojek/darkroom/pkg/config"
)

var instance *zap.Logger
Expand Down
4 changes: 2 additions & 2 deletions pkg/processor/native/processor.go
Expand Up @@ -5,13 +5,13 @@ import (
"github.com/anthonynsimon/bild/clone"
"github.com/anthonynsimon/bild/parallel"
"github.com/anthonynsimon/bild/transform"
"github.com/gojek/darkroom/pkg/metrics"
"github.com/gojek/darkroom/pkg/processor"
"image"
"image/color"
"image/draw"
"image/jpeg"
"image/png"
"github.com/gojek/darkroom/pkg/metrics"
"github.com/gojek/darkroom/pkg/processor"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/processor/native/processor_test.go
Expand Up @@ -2,11 +2,11 @@ package native

import (
"bytes"
"github.com/gojek/darkroom/pkg/processor"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"image"
"io/ioutil"
"github.com/gojek/darkroom/pkg/processor"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/processor/native/utils.go
@@ -1,8 +1,8 @@
package native

import (
"image"
"github.com/gojek/darkroom/pkg/processor"
"image"
)

func isOpaque(im image.Image) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/processor/native/utils_test.go
@@ -1,10 +1,10 @@
package native

import (
"github.com/gojek/darkroom/pkg/processor"
"github.com/stretchr/testify/assert"
"image"
"image/color"
"github.com/gojek/darkroom/pkg/processor"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/router/routes.go
Expand Up @@ -7,10 +7,10 @@ import (

"github.com/gojek/darkroom/pkg/regex"

"github.com/gorilla/mux"
"github.com/gojek/darkroom/internal/handler"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/service"
"github.com/gorilla/mux"
)

func NewRouter(deps *service.Dependencies) *mux.Router {
Expand Down
2 changes: 1 addition & 1 deletion pkg/router/routes_test.go
Expand Up @@ -5,10 +5,10 @@ import (
"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/service"
"github.com/gojek/darkroom/pkg/storage"
"github.com/stretchr/testify/assert"
)

func TestNewRouter(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/dependencies.go
Expand Up @@ -3,15 +3,15 @@ package service
import (
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/hystrix"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/processor/native"
"github.com/gojek/darkroom/pkg/regex"
base "github.com/gojek/darkroom/pkg/storage"
"github.com/gojek/darkroom/pkg/storage/aws/cloudfront"
"github.com/gojek/darkroom/pkg/storage/aws/s3"
"github.com/gojek/darkroom/pkg/storage/webfolder"
"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/hystrix"
)

type Dependencies struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/service/dependencies_test.go
Expand Up @@ -3,11 +3,11 @@ package service
import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/storage/aws/cloudfront"
"github.com/gojek/darkroom/pkg/storage/aws/s3"
"github.com/gojek/darkroom/pkg/storage/webfolder"
"github.com/stretchr/testify/assert"
)

func TestNewDependencies(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/manipulator_test.go
@@ -1,10 +1,10 @@
package service

import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/gojek/darkroom/pkg/processor"
"github.com/gojek/darkroom/pkg/processor/native"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/cloudfront/storage.go
Expand Up @@ -3,11 +3,11 @@ package cloudfront
import (
"context"
"fmt"
"github.com/gojek/darkroom/pkg/storage"
"github.com/gojektech/heimdall"
"github.com/pkg/errors"
"io/ioutil"
"net/http"
"github.com/gojek/darkroom/pkg/storage"
)

type Storage struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/s3/options_test.go
Expand Up @@ -2,8 +2,8 @@ package s3

import (
"github.com/afex/hystrix-go/hystrix"
"github.com/stretchr/testify/assert"
"github.com/gojek/darkroom/pkg/storage"
"github.com/stretchr/testify/assert"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/s3/storage_test.go
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"github.com/gojek/darkroom/pkg/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"io"
"net/http"
"github.com/gojek/darkroom/pkg/storage"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/webfolder/storage.go
Expand Up @@ -3,10 +3,10 @@ package webfolder
import (
"context"
"fmt"
"github.com/gojek/darkroom/pkg/storage"
"github.com/gojektech/heimdall"
"io/ioutil"
"net/http"
"github.com/gojek/darkroom/pkg/storage"
)

type Storage struct {
Expand Down

0 comments on commit e349191

Please sign in to comment.