Format go code

This commit is contained in:
yyoshiki41
2016-05-22 11:35:42 +09:00
parent 8a7b1a81ac
commit 4d8dbe0fe1
4 changed files with 4 additions and 5 deletions

View File

@@ -200,7 +200,6 @@ func cleanDir(dir string) {
}
}
// genSource renders the given template to produce source code, which it writes
// to the given directory and file.
func genSource(dir, filename, templateSource string, args map[string]interface{}) {

View File

@@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"
"github.com/revel/revel"
"github.com/revel/cmd/harness"
"github.com/revel/revel"
)
var cmdBuild = &Command{

View File

@@ -1,8 +1,8 @@
package main
import (
"github.com/revel/revel"
"github.com/revel/cmd/harness"
"github.com/revel/revel"
"strconv"
)
@@ -65,7 +65,7 @@ func runApp(args []string) {
}
// Else, just build and run the app.
revel.TRACE.Println("Running in live build mode.")
revel.TRACE.Println("Running in live build mode.")
app, err := harness.Build()
if err != nil {
errorf("Failed to build app: %s", err)

View File

@@ -3,9 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/revel/revel"
"github.com/revel/cmd/harness"
"github.com/revel/modules/testrunner/app/controllers"
"github.com/revel/revel"
"io"
"io/ioutil"
"net/http"