menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Productivity News

>

Send Daily...
source image

Dev

2w

read

21

img
dot

Image Credit: Dev

Send Daily Push Notifications to Your Phone Using Golang

  • The author built a bot with Go that reminds the user of their new year's resolutions via scheduled notifications sent to their phone.
  • The Pushover API was used to deliver personalised notification messages, and resolutions.txt contains the text of the resolutions themselves (one per line).
  • gocron was used to set the notification delivery time each day.
  • The author wanted the project to be easy to update, so wrote in Go in order to have easy concurrency and clean API integration to keep the app uncluttered.
  • The author uses environment variables to avoid hard-coding sensitive user credentials in the code.
  • The gregdel/pushover package was used to send notifications via the mobile app Pushover.
  • Storing the goals in a text file means updating them is a straightforward as editing the notepad file.
  • The bot was developed with an eye to catering to users with little to no background in programming - hence its simplicity.
  • The author acknowledges the year 2024 was a tough one, but encourages those who use the bot to stick to their goals in 2025.
  • For those who want to try a hand building their own simple personal reminder system, he encourages learning with hands-on experience by forking the codebase and submitting improvements on GitHub.

Read Full Article

like

1 Like

For uninterrupted reading, download the app