Fixing FMT errors

Do we run go-fmt in CI?
This commit is contained in:
Denis Makogon
2017-07-28 13:03:47 +03:00
parent 721c0f1255
commit 49fe3eb11a
36 changed files with 43 additions and 43 deletions

View File

@@ -3,8 +3,8 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api/models"
"github.com/gin-gonic/gin"
)
func (s *Server) handleAppCreate(c *gin.Context) {

View File

@@ -3,10 +3,10 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/fnproject/fn/api/models"
"github.com/fnproject/fn/api/runner/common"
"github.com/gin-gonic/gin"
)
func (s *Server) handleAppDelete(c *gin.Context) {

View File

@@ -3,8 +3,8 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/gin-gonic/gin"
)
func (s *Server) handleAppGet(c *gin.Context) {

View File

@@ -3,8 +3,8 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api/models"
"github.com/gin-gonic/gin"
)
func (s *Server) handleAppList(c *gin.Context) {

View File

@@ -8,11 +8,11 @@ import (
"testing"
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api/datastore"
"github.com/fnproject/fn/api/logs"
"github.com/fnproject/fn/api/models"
"github.com/fnproject/fn/api/mqs"
"github.com/gin-gonic/gin"
)
func setLogBuffer() *bytes.Buffer {

View File

@@ -3,9 +3,9 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/fnproject/fn/api/models"
"github.com/gin-gonic/gin"
)
func (s *Server) handleAppUpdate(c *gin.Context) {

View File

@@ -3,8 +3,8 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/gin-gonic/gin"
)
func (s *Server) handleCallGet(c *gin.Context) {

View File

@@ -3,8 +3,8 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/gin-gonic/gin"
)
func (s *Server) handleCallLogGet(c *gin.Context) {

View File

@@ -4,9 +4,9 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/fnproject/fn/api/models"
"github.com/gin-gonic/gin"
)
type ApiHandlerFunc func(w http.ResponseWriter, r *http.Request)

View File

@@ -6,9 +6,9 @@ import (
"path"
"strings"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/fnproject/fn/api/models"
"github.com/gin-gonic/gin"
)
/* handleRouteCreateOrUpdate is used to handle POST PUT and PATCH for routes.

View File

@@ -4,8 +4,8 @@ import (
"net/http"
"path"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/gin-gonic/gin"
)
func (s *Server) handleRouteDelete(c *gin.Context) {

View File

@@ -4,8 +4,8 @@ import (
"net/http"
"path"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/gin-gonic/gin"
)
func (s *Server) handleRouteGet(c *gin.Context) {

View File

@@ -3,9 +3,9 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api"
"github.com/fnproject/fn/api/models"
"github.com/gin-gonic/gin"
)
func (s *Server) handleRouteList(c *gin.Context) {

View File

@@ -12,15 +12,15 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/go-openapi/strfmt"
cache "github.com/patrickmn/go-cache"
"github.com/fnproject/fn/api"
"github.com/fnproject/fn/api/id"
"github.com/fnproject/fn/api/models"
"github.com/fnproject/fn/api/runner"
"github.com/fnproject/fn/api/runner/common"
"github.com/fnproject/fn/api/runner/task"
"github.com/gin-gonic/gin"
"github.com/go-openapi/strfmt"
cache "github.com/patrickmn/go-cache"
)
type runnerResponse struct {

View File

@@ -9,12 +9,12 @@ import (
"testing"
"time"
"github.com/gin-gonic/gin"
cache "github.com/patrickmn/go-cache"
"github.com/fnproject/fn/api/datastore"
"github.com/fnproject/fn/api/models"
"github.com/fnproject/fn/api/mqs"
"github.com/fnproject/fn/api/runner"
"github.com/gin-gonic/gin"
cache "github.com/patrickmn/go-cache"
)
func testRouterAsync(ds models.Datastore, mq models.MessageQueue, rnr *runner.Runner, enqueue models.Enqueue) *gin.Engine {

View File

@@ -12,12 +12,12 @@ import (
"testing"
"time"
"github.com/gin-gonic/gin"
cache "github.com/patrickmn/go-cache"
"github.com/fnproject/fn/api/datastore"
"github.com/fnproject/fn/api/models"
"github.com/fnproject/fn/api/mqs"
"github.com/fnproject/fn/api/runner"
"github.com/gin-gonic/gin"
cache "github.com/patrickmn/go-cache"
)
var tmpDatastoreTests = "/tmp/func_test_datastore.db"

View File

@@ -3,8 +3,8 @@ package server
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/fnproject/fn/api/version"
"github.com/gin-gonic/gin"
)
func handleVersion(c *gin.Context) {