time-since-google-action

command module
v0.0.0-...-284c074 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 11 Imported by: 0

README

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:

PORT=3000 go run ./*.go

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

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL