普通网友 2017-06-20 13:58
浏览 138
已采纳

卡在Google Home教程上

I am working on an intro to Actions on Google tutorial. I made it to page 4 and I am stuck on the "Fulfillment Webhook and Deployment" stage. I put the sample backend code into a Go file called populationai.go. I'm confused as to how to do the commands listed in the "Using ngrok to locally run the Webhook" section in Windows, as they are designed for a different operating system. Should I be doing these steps in the command prompt of Windows in the first place? Thanks.

https://www.programmableweb.com/news/how-to-get-started-google-actions/how-to/2017/01/31?page=4

Here are the steps I'm confused on:

  1. We start up the Go application, which exposes the API Server via go run populationapi.go

    $ go run populationapi.go
    
  2. We start ngrok to expose a secure public tunnel on port 9000 via the following command:

    $ ngrok http 9000
    

Edit: every time I try the "go run populationapi.go" command it says

'go' is not recognized as an internal or external command, operable program or batch file.

Edit: my go file is located on my desktop. Is the issue the location of the file? The installer put Go distribution in c:\Go.

  • 写回答

1条回答 默认 最新

  • douchensi8625 2017-06-20 14:17
    关注

    The error means you do not have Go installed.

    You need to install go, also known as Golang to run that example code they provide on Step 4.

    Make sure to follow the installation instructions as well.

    It was just an example. You can write the code in any language as well.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题