Skip to content
Permalink
Browse files

Fixing exported function in example

  • Loading branch information...
Depado committed Mar 14, 2018
1 parent b907163 commit c8e0c0e07f9a9bc9a2d9000be2c04b65960b8cc8
Showing with 7 additions and 7 deletions.
  1. +5 −5 README.md
  2. +2 −2 examples/gin/main.go
@@ -97,7 +97,7 @@ type params struct {
Age int `json:"age"`
}
func HandleWebhook(c *gin.Context) {
func webhook(c *gin.Context) {
var err error
var dfr *df.Request
@@ -109,7 +109,7 @@ func HandleWebhook(c *gin.Context) {
func main() {
r := gin.Default()
r.POST("/webhook")
r.POST("/webhook", webhook)
if err := r.Run("127.0.0.1:8001"); err != nil {
panic(err)
}
@@ -125,7 +125,7 @@ type params struct {
Age int `json:"age"`
}
func HandleWebhook(c *gin.Context) {
func webhook(c *gin.Context) {
var err error
var dfr *df.Request
var p params
@@ -161,7 +161,7 @@ type params struct {
Age int `json:"age"`
}
func HandleWebhook(c *gin.Context) {
func webhook(c *gin.Context) {
var err error
var dfr *df.Request
var p params
@@ -185,7 +185,7 @@ DialogFlow expects you to respond with what is called a [fulfillment](https://di
This package supports every rich response type.

```go
func HandleWebhook(c *gin.Context) {
func webhook(c *gin.Context) {
var err error
var dfr *df.Request
var p params
@@ -13,7 +13,7 @@ type params struct {
Age int `json:"age"`
}

func HandleWebhook(c *gin.Context) {
func webhook(c *gin.Context) {
var err error
var dfr *df.Request
var p params
@@ -49,7 +49,7 @@ func HandleWebhook(c *gin.Context) {

func main() {
r := gin.Default()
r.POST("/webhook")
r.POST("/webhook", webhook)
if err := r.Run("127.0.0.1:8001"); err != nil {
panic(err)
}

0 comments on commit c8e0c0e

Please sign in to comment.
You can’t perform that action at this time.