项目作者: br4in3x

项目描述 :
Golang Google Assistant Action (REST API)
高级语言: Go
项目地址: git://github.com/br4in3x/time-since-google-action.git
创建时间: 2020-10-11T07:28:33Z
项目社区:https://github.com/br4in3x/time-since-google-action

开源协议:MIT License

下载


Time Since - Golang Google Assistant Action

This simple action is my attempt to play with Google Assistant actions in Golang. It can tell you how many days have passed since a certain date, or how many days between two dates.

This action should be deployed as an HTTP server, for example, on Heroku. It acts as a simple REST API responding on Google’s requests with valid JSON.

Poject Config

In the project_config folder you will find Google Actions project, which should be pushed to the Google Actions console with gactions command.

Development

If you would like to run this action on your machine, use next command:

  1. PORT=3000 go run ./*.go

Or, if you would like to have a cool live-reload feature, use air:

  1. go get -u github.com/cosmtrek/air
  2. PORT=3000 air