Copy in a separated package called mongoutil the content of the .go file, then use it as follows
import (
"path/of/mongoutil"
)
type example struct {Greetings from the Tryvium Team,
Here is how to integrate a Transferwise webhook with Slack notifications. We have chosen to use cloudflare workers as a perfect case study for serverless applications using cloudflare.
| #!/bin/bash | |
| # assumes pwd is your root folder | |
| echo "Running goagen to create generated goa code" | |
| goagen app \ | |
| -d your/project/import/path/design \ | |
| -o . | |
| echo "Running goagen to create generated goa controllers (if necessary)" | |
| goagen controller \ | |
| -d your/project/import/path/design \ |