Skip to content
Browse files

Banner for DF+Protobuf+go modules and quickfixes

  • Loading branch information...
Depado committed Sep 17, 2018
1 parent 94d8c77 commit 69a44470713f8dd650d42a75ea8255d98599090c
Binary file not shown.
@@ -1,6 +1,6 @@
title: "Dialogflow Webhook, Golang and Protobuf"
description: "Using protobuf for our Dialogflow webhook. Also using go modules ♥"
banner: ""
banner: "/assets/dialogflow-protobuf/banner.png"
slug: dialogflow-webhook-golang-protobuf
tags: ["go", "dev", "protobuf", "dialogflow", "modules"]
date: "2018-09-11 11:54:00"
@@ -148,11 +148,11 @@ require (
And voilà. Not only did we installed the proper versions of the two libraries
we're using (namely gin and logrus) but also their transient dependencies.

<object type="image/svg+xml" data="/assets/dialogflow-protobuf/term.svg"></object>

### Using `dep`

We'll first init dep, and add the generated golang protobuf code.
We'll first init dep by running `dep init`.

$ dep init
@@ -170,6 +170,12 @@ $ dep init
(11/11) Wrote

Then we can add the following package:

$ dep ensure -add

## Handler

Now we're going to import the generated code from protobuf:
@@ -243,3 +249,6 @@ contexts = wr.GetQueryResult().GetOutputContexts()

You can find the [complete code here](

Thanks to [@ashleymcnamara]( for the amazing
[Gopher Artworks]( !

0 comments on commit 69a4447

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