1
0
mirror of https://github.com/labstack/echo.git synced 2026-05-16 09:48:24 +02:00

Updated website and examples

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2017-01-17 10:47:16 -08:00
parent a89cf4d0c2
commit 49321f5829
72 changed files with 57 additions and 57 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
*.json text eol=lf *.json text eol=lf
LICENSE text eol=lf LICENSE text eol=lf
# Exclude `website` and `examples` from GitHub's language statistics # Exclude `website` and `cookbook` from GitHub's language statistics
# https://github.com/github/linguist#using-gitattributes # https://github.com/github/linguist#using-gitattributes
examples/* linguist-documentation cookbook/* linguist-documentation
website/* linguist-documentation website/* linguist-documentation

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"github.com/labstack/echo" "github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/model" "github.com/labstack/echo/cookbook/twitter/model"
mgo "gopkg.in/mgo.v2" mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
) )
@@ -6,7 +6,7 @@ import (
jwt "github.com/dgrijalva/jwt-go" jwt "github.com/dgrijalva/jwt-go"
"github.com/labstack/echo" "github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/model" "github.com/labstack/echo/cookbook/twitter/model"
mgo "gopkg.in/mgo.v2" mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
) )
@@ -2,7 +2,7 @@ package main
import ( import (
"github.com/labstack/echo" "github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/handler" "github.com/labstack/echo/cookbook/twitter/handler"
"github.com/labstack/echo/middleware" "github.com/labstack/echo/middleware"
"github.com/labstack/gommon/log" "github.com/labstack/gommon/log"
mgo "gopkg.in/mgo.v2" mgo "gopkg.in/mgo.v2"
+1 -1
View File
@@ -6,6 +6,6 @@ googleAnalytics = "UA-85059636-2"
[permalinks] [permalinks]
guide = "/guide/:filename" guide = "/guide/:filename"
middleware = "/middleware/:filename" middleware = "/middleware/:filename"
examples = "/examples/:filename" example = "/cookbook/:filename"
[params] [params]
description = "Echo is a high performance, extensible, minimalist web framework for Go (Golang)." description = "Echo is a high performance, extensible, minimalist web framework for Go (Golang)."
+13
View File
@@ -0,0 +1,13 @@
+++
title = "Cookbook"
description = "Echo cookbook"
type = "cookbook"
[menu.main]
name = "Cookbook"
pre = "<i class='fa fa-code'></i>"
weight = 2
identifier = "cookbook"
url = "/cookbook"
+++
<script>location = '/cookbook/hello-world';</script>
@@ -1,9 +1,9 @@
+++ +++
title = "Auto TLS Example" title = "Auto TLS"
description = "Automatic TLS certificates from Let's Encrypt example for Echo" description = "Automatic TLS certificates from Let's Encrypt example for Echo"
[menu.main] [menu.main]
name = "Auto TLS" name = "Auto TLS"
parent = "examples" parent = "cookbook"
weight = 2 weight = 2
+++ +++
@@ -1,10 +1,10 @@
+++ +++
title = "CORS Example" title = "CORS"
description = "CORS example for Echo" description = "CORS example for Echo"
[menu.main] [menu.main]
name = "CORS" name = "CORS"
identifier = "middleware-cors" identifier = "middleware-cors"
parent = "examples" parent = "cookbook"
weight = 3 weight = 3
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "CRUD Example" title = "CRUD"
description = "CRUD (Create, read, update and delete) example for Echo" description = "CRUD (Create, read, update and delete) example for Echo"
[menu.main] [menu.main]
name = "CRUD" name = "CRUD"
parent = "examples" parent = "cookbook"
weight = 2 weight = 2
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Embed Resources Example" title = "Embed Resources"
description = "Embed resources example for Echo" description = "Embed resources example for Echo"
[menu.main] [menu.main]
name = "Embed Resources" name = "Embed Resources"
parent = "examples" parent = "cookbook"
weight = 14 weight = 14
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "File Upload Example" title = "File Upload"
description = "File upload example for Echo" description = "File upload example for Echo"
[menu.main] [menu.main]
name = "File Upload" name = "File Upload"
parent = "examples" parent = "cookbook"
weight = 7 weight = 7
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Google App Engine Example" title = "Google App Engine"
description = "Google App Engine example for Echo" description = "Google App Engine example for Echo"
[menu.main] [menu.main]
name = "Google App Engine" name = "Google App Engine"
parent = "examples" parent = "cookbook"
weight = 12 weight = 12
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Graceful Shutdown Example" title = "Graceful Shutdown"
description = "Graceful shutdown example for Echo" description = "Graceful shutdown example for Echo"
[menu.main] [menu.main]
name = "Graceful Shutdown" name = "Graceful Shutdown"
parent = "examples" parent = "cookbook"
weight = 13 weight = 13
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Hello World Example" title = "Hello World"
description = "Hello world example for Echo" description = "Hello world example for Echo"
[menu.main] [menu.main]
name = "Hello World" name = "Hello World"
parent = "examples" parent = "cookbook"
weight = 1 weight = 1
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "HTTP/2 Example" title = "HTTP/2"
description = "HTTP/2 example for Echo" description = "HTTP/2 example for Echo"
[menu.main] [menu.main]
name = "HTTP/2" name = "HTTP/2"
parent = "examples" parent = "cookbook"
weight = 3 weight = 3
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "JSONP Example" title = "JSONP"
description = "JSONP example for Echo" description = "JSONP example for Echo"
[menu.main] [menu.main]
name = "JSONP" name = "JSONP"
parent = "examples" parent = "cookbook"
weight = 6 weight = 6
+++ +++
@@ -1,10 +1,10 @@
+++ +++
title = "JWT Example" title = "JWT"
description = "JWT example for Echo" description = "JWT example for Echo"
[menu.main] [menu.main]
name = "JWT" name = "JWT"
identifier = "example-jwt" identifier = "example-jwt"
parent = "examples" parent = "cookbook"
weight = 11 weight = 11
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Middleware Example" title = "Middleware"
description = "Middleware example for Echo" description = "Middleware example for Echo"
[menu.main] [menu.main]
name = "Middleware" name = "Middleware"
parent = "examples" parent = "cookbook"
weight = 3 weight = 3
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Streaming Response Example" title = "Streaming Response"
description = "Streaming response example for Echo" description = "Streaming response example for Echo"
[menu.main] [menu.main]
name = "Streaming Response" name = "Streaming Response"
parent = "examples" parent = "cookbook"
weight = 3 weight = 3
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Subdomains Example" title = "Subdomains"
description = "Subdomains example for Echo" description = "Subdomains example for Echo"
[menu.main] [menu.main]
name = "Subdomains" name = "Subdomains"
parent = "examples" parent = "cookbook"
weight = 10 weight = 10
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "Twitter Like API Example" title = "Twitter Like API"
description = "Twitter Like API example for Echo" description = "Twitter Like API example for Echo"
[menu.main] [menu.main]
name = "Twitter" name = "Twitter"
parent = "examples" parent = "cookbook"
weight = 2 weight = 2
+++ +++
@@ -1,9 +1,9 @@
+++ +++
title = "WebSocket Example" title = "WebSocket"
description = "WebSocket example for Echo" description = "WebSocket example for Echo"
[menu.main] [menu.main]
name = "WebSocket" name = "WebSocket"
parent = "examples" parent = "cookbook"
weight = 5 weight = 5
+++ +++
-13
View File
@@ -1,13 +0,0 @@
+++
title = "Examples"
description = "Echo examples"
type = "examples"
[menu.main]
name = "Examples"
pre = "<i class='fa fa-code'></i>"
weight = 2
identifier = "examples"
url = "/examples"
+++
<script>location = '/examples/hello-world';</script>
+1 -1
View File
@@ -45,4 +45,4 @@ description = "Migration"
- Moved website and examples to the main repo - Moved website and examples to the main repo
- Updated docs and fixed numerous issues - Updated docs and fixed numerous issues
## [Examples](/examples/hello-world) ## [Cookbook](/cookbook)
+1 -1
View File
@@ -129,7 +129,7 @@ func(c echo.Context) error {
Go type into JSON and send it as JSONP payload constructed using a callback, with Go type into JSON and send it as JSONP payload constructed using a callback, with
status code. status code.
[*Example*](/examples/jsonp) [*Example*](/cookbook/jsonp)
## Send XML ## Send XML
+1 -1
View File
@@ -105,4 +105,4 @@ e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Example above skips Logger middleware when request host starts with localhost. Example above skips Logger middleware when request host starts with localhost.
## [Writing Custom Middleware]({{< ref "examples/middleware.md">}}) ## [Writing Custom Middleware]({{< ref "cookbook/middleware.md">}})
+1 -1
View File
@@ -80,4 +80,4 @@ DefaultJWTConfig = JWTConfig{
} }
``` ```
## [Example]({{< ref "examples/jwt.md">}}) ## [Example]({{< ref "cookbook/jwt.md">}})
+1 -1
View File
@@ -1 +1 @@
<pre data-src="https://raw.githubusercontent.com/labstack/echo/master/examples/{{ .Get 0 }}"></pre> <pre data-src="https://raw.githubusercontent.com/labstack/echo/master/cookbook/{{ .Get 0 }}"></pre>
+1 -1
View File
@@ -1 +1 @@
https://github.com/labstack/echo/tree/master/examples/{{ .Get 0 }} https://github.com/labstack/echo/tree/master/cookbook/{{ .Get 0 }}