diff --git a/iris.go b/iris.go index 53082a66..34c6d873 100644 --- a/iris.go +++ b/iris.go @@ -1947,7 +1947,7 @@ func (api *muxAPI) StaticEmbedded(requestPath string, vdir string, assetFn func( } if len(names) == 0 { // 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() diff --git a/iris/get.go b/iris/get.go index 00ddfc34..5088aca0 100644 --- a/iris/get.go +++ b/iris/get.go @@ -23,9 +23,9 @@ var ( // the available projects/examples to build & run using this command line tool projects = map[string]project{ // the project type, passed on the get command : project.gopath & project.mainfile - "basic": project{remote: toslash(commonRepo, "basic", "backend")}, - "static": project{remote: toslash(commonRepo, "static", "backend")}, - "mongo": project{remote: toslash(commonRepo, "mongo", "backend")}, + "basic": {remote: toslash(commonRepo, "basic", "backend")}, + "static": {remote: toslash(commonRepo, "static", "backend")}, + "mongo": {remote: toslash(commonRepo, "mongo", "backend")}, } ) diff --git a/template.go b/template.go index 00ccf283..2b5cf373 100644 --- a/template.go +++ b/template.go @@ -100,7 +100,7 @@ func (t *templateEngines) render(isFile bool, ctx *Context, filenameOrSource str if len(options) > 0 { options[0]["layout"] = ctxLayout } else { - options = []map[string]interface{}{map[string]interface{}{"layout": ctxLayout}} + options = []map[string]interface{}{{"layout": ctxLayout}} } } }