-
-
diff --git a/recipes/embed-resources/app/main.js b/recipes/embed-resources/app/main.js
deleted file mode 100644
index f888dc5c..00000000
--- a/recipes/embed-resources/app/main.js
+++ /dev/null
@@ -1 +0,0 @@
-alert("main.js");
diff --git a/recipes/embed-resources/rice.go b/recipes/embed-resources/rice.go
deleted file mode 100644
index 7dcc4b8e..00000000
--- a/recipes/embed-resources/rice.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package main
-
-import (
- "net/http"
-
- "github.com/GeertJohan/go.rice"
- "github.com/labstack/echo"
-)
-
-func main() {
- e := echo.New()
- // the file server for rice. "app" is the folder where the files come from.
- assetHandler := http.FileServer(rice.MustFindBox("app").HTTPBox())
- // serves the index.html from rice
- e.Get("/", func(c *echo.Context) error {
- assetHandler.ServeHTTP(c.Response().Writer(), c.Request())
- return nil
- })
- // servers other static files
- e.Get("/static/*", func(c *echo.Context) error {
- http.StripPrefix("/static/", assetHandler).
- ServeHTTP(c.Response().Writer(), c.Request())
- return nil
- })
- e.Run(":3000")
-}
diff --git a/recipes/file-upload/public/index.html b/recipes/file-upload/public/index.html
deleted file mode 100644
index cdbdb3e5..00000000
--- a/recipes/file-upload/public/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
- File Upload
-
-
-
Upload Files
-
-
-
-
diff --git a/recipes/file-upload/server.go b/recipes/file-upload/server.go
deleted file mode 100644
index 05ba9e99..00000000
--- a/recipes/file-upload/server.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package main
-
-import (
- "fmt"
- "io"
- "os"
-
- "net/http"
-
- "github.com/labstack/echo"
- mw "github.com/labstack/echo/middleware"
-)
-
-func upload(c *echo.Context) error {
- req := c.Request()
- req.ParseMultipartForm(16 << 20) // Max memory 16 MiB
-
- // Read form fields
- name := c.Form("name")
- email := c.Form("email")
-
- // Read files
- files := req.MultipartForm.File["files"]
- for _, f := range files {
- // Source file
- src, err := f.Open()
- if err != nil {
- return err
- }
- defer src.Close()
-
- // Destination file
- dst, err := os.Create(f.Filename)
- if err != nil {
- return err
- }
- defer dst.Close()
-
- if _, err = io.Copy(dst, src); err != nil {
- return err
- }
- }
- return c.String(http.StatusOK, fmt.Sprintf("Thank You! %s <%s>, %d files uploaded successfully.",
- name, email, len(files)))
-}
-
-func main() {
- e := echo.New()
- e.Use(mw.Logger())
- e.Use(mw.Recover())
-
- e.Static("/", "public")
- e.Post("/upload", upload)
-
- e.Run(":1323")
-}
diff --git a/recipes/google-app-engine/Dockerfile b/recipes/google-app-engine/Dockerfile
deleted file mode 100644
index 5d1c13e5..00000000
--- a/recipes/google-app-engine/Dockerfile
+++ /dev/null
@@ -1,7 +0,0 @@
-# Dockerfile extending the generic Go image with application files for a
-# single application.
-FROM gcr.io/google_appengine/golang
-
-COPY . /go/src/app
-RUN go-wrapper download
-RUN go-wrapper install -tags appenginevm
\ No newline at end of file
diff --git a/recipes/google-app-engine/app-engine.go b/recipes/google-app-engine/app-engine.go
deleted file mode 100644
index ddbf3944..00000000
--- a/recipes/google-app-engine/app-engine.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// +build appengine
-
-package main
-
-import (
- "github.com/labstack/echo"
- "net/http"
-)
-
-func createMux() *echo.Echo {
- e := echo.New()
-
- // note: we don't need to provide the middleware or static handlers, that's taken care of by the platform
- // app engine has it's own "main" wrapper - we just need to hook echo into the default handler
- http.Handle("/", e)
-
- return e
-}
diff --git a/recipes/google-app-engine/app-engine.yaml b/recipes/google-app-engine/app-engine.yaml
deleted file mode 100644
index e8f5bf05..00000000
--- a/recipes/google-app-engine/app-engine.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-application: my-application-id # defined when you create your app using google dev console
-module: default # see https://cloud.google.com/appengine/docs/go/
-version: alpha # you can run multiple versions of an app and A/B test
-runtime: go # see https://cloud.google.com/appengine/docs/go/
-api_version: go1 # used when appengine supports different go versions
-
-default_expiration: "1d" # for CDN serving of static files (use url versioning if long!)
-
-handlers:
-# all the static files that we normally serve ourselves are defined here and Google will handle
-# serving them for us from it's own CDN / edge locations. For all the configuration options see:
-# https://cloud.google.com/appengine/docs/go/config/appconfig#Go_app_yaml_Static_file_handlers
-- url: /
- mime_type: text/html
- static_files: public/index.html
- upload: public/index.html
-
-- url: /favicon.ico
- mime_type: image/x-icon
- static_files: public/favicon.ico
- upload: public/favicon.ico
-
-- url: /scripts
- mime_type: text/javascript
- static_dir: public/scripts
-
-# static files normally don't touch the server that the app runs on but server-side template files
-# needs to be readable by the app. The application_readable option makes sure they are available as
-# part of the app deployment onto the instance.
-- url: /templates
- static_dir: /templates
- application_readable: true
-
-# finally, we route all other requests to our application. The script name just means "the go app"
-- url: /.*
- script: _go_app
\ No newline at end of file
diff --git a/recipes/google-app-engine/app-managed.go b/recipes/google-app-engine/app-managed.go
deleted file mode 100644
index cc5adfbf..00000000
--- a/recipes/google-app-engine/app-managed.go
+++ /dev/null
@@ -1,29 +0,0 @@
-// +build appenginevm
-
-package main
-
-import (
- "github.com/labstack/echo"
- "google.golang.org/appengine"
- "net/http"
- "runtime"
-)
-
-func createMux() *echo.Echo {
- // we're in a container on a Google Compute Engine instance so are not sandboxed anymore ...
- runtime.GOMAXPROCS(runtime.NumCPU())
-
- e := echo.New()
-
- // note: we don't need to provide the middleware or static handlers
- // for the appengine vm version - that's taken care of by the platform
-
- return e
-}
-
-func main() {
- // the appengine package provides a convenient method to handle the health-check requests
- // and also run the app on the correct port. We just need to add Echo to the default handler
- http.Handle("/", e)
- appengine.Main()
-}
diff --git a/recipes/google-app-engine/app-managed.yaml b/recipes/google-app-engine/app-managed.yaml
deleted file mode 100644
index d5da4cd9..00000000
--- a/recipes/google-app-engine/app-managed.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-application: my-application-id # defined when you create your app using google dev console
-module: default # see https://cloud.google.com/appengine/docs/go/
-version: alpha # you can run multiple versions of an app and A/B test
-runtime: go # see https://cloud.google.com/appengine/docs/go/
-api_version: go1 # used when appengine supports different go versions
-vm: true # for managed VMs only, remove for appengine classic
-
-default_expiration: "1d" # for CDN serving of static files (use url versioning if long!)
-
-handlers:
-# all the static files that we normally serve ourselves are defined here and Google will handle
-# serving them for us from it's own CDN / edge locations. For all the configuration options see:
-# https://cloud.google.com/appengine/docs/go/config/appconfig#Go_app_yaml_Static_file_handlers
-- url: /
- mime_type: text/html
- static_files: public/index.html
- upload: public/index.html
-
-- url: /favicon.ico
- mime_type: image/x-icon
- static_files: public/favicon.ico
- upload: public/favicon.ico
-
-- url: /scripts
- mime_type: text/javascript
- static_dir: public/scripts
-
-# static files normally don't touch the server that the app runs on but server-side template files
-# needs to be readable by the app. The application_readable option makes sure they are available as
-# part of the app deployment onto the instance.
-- url: /templates
- static_dir: /templates
- application_readable: true
-
-# finally, we route all other requests to our application. The script name just means "the go app"
-- url: /.*
- script: _go_app
\ No newline at end of file
diff --git a/recipes/google-app-engine/app-standalone.go b/recipes/google-app-engine/app-standalone.go
deleted file mode 100644
index 0a6881fa..00000000
--- a/recipes/google-app-engine/app-standalone.go
+++ /dev/null
@@ -1,25 +0,0 @@
-// +build !appengine,!appenginevm
-
-package main
-
-import (
- "github.com/labstack/echo"
- "github.com/labstack/echo/middleware"
-)
-
-func createMux() *echo.Echo {
- e := echo.New()
-
- e.Use(middleware.Recover())
- e.Use(middleware.Logger())
- e.Use(middleware.Gzip())
-
- e.Index("public/index.html")
- e.Static("/public", "public")
-
- return e
-}
-
-func main() {
- e.Run(":8080")
-}
diff --git a/recipes/google-app-engine/app.go b/recipes/google-app-engine/app.go
deleted file mode 100644
index 442ed886..00000000
--- a/recipes/google-app-engine/app.go
+++ /dev/null
@@ -1,4 +0,0 @@
-package main
-
-// referecnce our echo instance and create it early
-var e = createMux()
diff --git a/recipes/google-app-engine/public/favicon.ico b/recipes/google-app-engine/public/favicon.ico
deleted file mode 100644
index d939ddca..00000000
Binary files a/recipes/google-app-engine/public/favicon.ico and /dev/null differ
diff --git a/recipes/google-app-engine/public/index.html b/recipes/google-app-engine/public/index.html
deleted file mode 100644
index aed4f466..00000000
--- a/recipes/google-app-engine/public/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
- Echo
-
-
-
-
-
-
Echo!
-
-
-
diff --git a/recipes/google-app-engine/public/scripts/main.js b/recipes/google-app-engine/public/scripts/main.js
deleted file mode 100644
index 62a4c8f1..00000000
--- a/recipes/google-app-engine/public/scripts/main.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log("Echo!");
diff --git a/recipes/google-app-engine/templates/welcome.html b/recipes/google-app-engine/templates/welcome.html
deleted file mode 100644
index 5dc667c3..00000000
--- a/recipes/google-app-engine/templates/welcome.html
+++ /dev/null
@@ -1 +0,0 @@
-{{define "welcome"}}Hello, {{.}}!{{end}}
diff --git a/recipes/google-app-engine/users.go b/recipes/google-app-engine/users.go
deleted file mode 100644
index 8b1bf019..00000000
--- a/recipes/google-app-engine/users.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package main
-
-import (
- "net/http"
-
- "github.com/labstack/echo"
- "github.com/rs/cors"
-)
-
-type (
- user struct {
- ID string `json:"id"`
- Name string `json:"name"`
- }
-)
-
-var (
- users map[string]user
-)
-
-func init() {
- users = map[string]user{
- "1": user{
- ID: "1",
- Name: "Wreck-It Ralph",
- },
- }
-
- // hook into the echo instance to create an endpoint group
- // and add specific middleware to it plus handlers
- g := e.Group("/users")
- g.Use(cors.Default().Handler)
-
- g.Post("", createUser)
- g.Get("", getUsers)
- g.Get("/:id", getUser)
-}
-
-func createUser(c *echo.Context) error {
- u := new(user)
- if err := c.Bind(u); err != nil {
- return err
- }
- users[u.ID] = *u
- return c.JSON(http.StatusCreated, u)
-}
-
-func getUsers(c *echo.Context) error {
- return c.JSON(http.StatusOK, users)
-}
-
-func getUser(c *echo.Context) error {
- return c.JSON(http.StatusOK, users[c.P(0)])
-}
diff --git a/recipes/google-app-engine/welcome.go b/recipes/google-app-engine/welcome.go
deleted file mode 100644
index 2599a4d9..00000000
--- a/recipes/google-app-engine/welcome.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package main
-
-import (
- "html/template"
- "io"
- "net/http"
-
- "github.com/labstack/echo"
-)
-
-type (
- Template struct {
- templates *template.Template
- }
-)
-
-func init() {
- t := &Template{
- templates: template.Must(template.ParseFiles("templates/welcome.html")),
- }
- e.SetRenderer(t)
- e.Get("/welcome", welcome)
-}
-
-func (t *Template) Render(w io.Writer, name string, data interface{}) error {
- return t.templates.ExecuteTemplate(w, name, data)
-}
-
-func welcome(c *echo.Context) error {
- return c.Render(http.StatusOK, "welcome", "Joe")
-}
diff --git a/recipes/graceful-shutdown/grace/server.go b/recipes/graceful-shutdown/grace/server.go
deleted file mode 100644
index 3a19c9b1..00000000
--- a/recipes/graceful-shutdown/grace/server.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package main
-
-import (
- "net/http"
-
- "github.com/facebookgo/grace/gracehttp"
- "github.com/labstack/echo"
-)
-
-func main() {
- // Setup
- e := echo.New()
- e.Get("/", func(c *echo.Context) error {
- return c.String(http.StatusOK, "Six sick bricks tick")
- })
-
- // Get the http.Server
- s := e.Server(":1323")
-
- // HTTP2 is currently enabled by default in echo.New(). To override TLS handshake errors
- // you will need to override the TLSConfig for the server so it does not attempt to validate
- // the connection using TLS as required by HTTP2
- s.TLSConfig = nil
-
- // Serve it like a boss
- gracehttp.Serve(s)
-}
diff --git a/recipes/graceful-shutdown/graceful/server.go b/recipes/graceful-shutdown/graceful/server.go
deleted file mode 100644
index 5f6b46a8..00000000
--- a/recipes/graceful-shutdown/graceful/server.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package main
-
-import (
- "net/http"
- "time"
-
- "github.com/labstack/echo"
- "github.com/tylerb/graceful"
-)
-
-func main() {
- // Setup
- e := echo.New()
- e.Get("/", func(c *echo.Context) error {
- return c.String(http.StatusOK, "Sue sews rose on slow joe crows nose")
- })
-
- graceful.ListenAndServe(e.Server(":1323"), 5*time.Second)
-}
diff --git a/recipes/hello-world/server.go b/recipes/hello-world/server.go
deleted file mode 100644
index 88883d07..00000000
--- a/recipes/hello-world/server.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package main
-
-import (
- "net/http"
-
- "github.com/labstack/echo"
- mw "github.com/labstack/echo/middleware"
-)
-
-// Handler
-func hello(c *echo.Context) error {
- return c.String(http.StatusOK, "Hello, World!\n")
-}
-
-func main() {
- // Echo instance
- e := echo.New()
-
- // Middleware
- e.Use(mw.Logger())
- e.Use(mw.Recover())
-
- // Routes
- e.Get("/", hello)
-
- // Start server
- e.Run(":1323")
-}
diff --git a/recipes/jsonp/public/index.html b/recipes/jsonp/public/index.html
deleted file mode 100644
index 033632e9..00000000
--- a/recipes/jsonp/public/index.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
- JSONP
-
-
-
-
-
-
-