gofmted -s

This commit is contained in:
Gerasimos Maropoulos 2016-10-25 16:49:57 +03:00
parent 78d145c207
commit ee9b153f6d
3 changed files with 5 additions and 5 deletions

View File

@ -1947,7 +1947,7 @@ func (api *muxAPI) StaticEmbedded(requestPath string, vdir string, assetFn func(
} }
if len(names) == 0 { if len(names) == 0 {
// we don't start the server yet, so: // we don't start the server yet, so:
panic("iris.StaticEmbedded: Unable to locate any embedded files located to the (virutal) directory: " + vdir) panic("iris.StaticEmbedded: Unable to locate any embedded files located to the (virtual) directory: " + vdir)
} }
modtime := time.Now() modtime := time.Now()

View File

@ -23,9 +23,9 @@ var (
// the available projects/examples to build & run using this command line tool // the available projects/examples to build & run using this command line tool
projects = map[string]project{ projects = map[string]project{
// the project type, passed on the get command : project.gopath & project.mainfile // the project type, passed on the get command : project.gopath & project.mainfile
"basic": project{remote: toslash(commonRepo, "basic", "backend")}, "basic": {remote: toslash(commonRepo, "basic", "backend")},
"static": project{remote: toslash(commonRepo, "static", "backend")}, "static": {remote: toslash(commonRepo, "static", "backend")},
"mongo": project{remote: toslash(commonRepo, "mongo", "backend")}, "mongo": {remote: toslash(commonRepo, "mongo", "backend")},
} }
) )

View File

@ -100,7 +100,7 @@ func (t *templateEngines) render(isFile bool, ctx *Context, filenameOrSource str
if len(options) > 0 { if len(options) > 0 {
options[0]["layout"] = ctxLayout options[0]["layout"] = ctxLayout
} else { } else {
options = []map[string]interface{}{map[string]interface{}{"layout": ctxLayout}} options = []map[string]interface{}{{"layout": ctxLayout}}
} }
} }
} }