1
0

docs: adjust documentation to reflect single-binary deployments

This commit is contained in:
kolaente
2024-02-09 19:09:19 +01:00
parent 11b72765c9
commit 1984527fae
28 changed files with 732 additions and 1226 deletions

View File

@ -16,13 +16,13 @@ The package exposes a `cron.Schedule` method with two arguments: The first one t
A basic function to register a cron task looks like this:
{{< highlight golang >}}
```go
func RegisterSomeCronTask() {
err := cron.Schedule("0 * * * *", func() {
// Do something every hour
}
}
{{< /highlight >}}
```
Call the register method in the `FullInit()` method of the `init` package to actually register it.