You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simonkellet 449d7a1ff9 i think it works okay 3 weeks ago
assets i think it works okay 3 weeks ago
.gitignore Ready. Set. Go! 1 month ago
README.md added json example 3 weeks ago
config.go improvements 3 weeks ago
go.mod improvements 3 weeks ago
go.sum improvements 3 weeks ago
main.go i think it works okay 3 weeks ago
run.go i think it works okay 3 weeks ago
tasks.go changed int32 to time.Duration type 3 weeks ago
tasks.json i think it works okay 3 weeks ago

README.md

Go Task Reminder

unfinished

The Goal

Create a Task Reminder application that will:

  • Take a JSON file as input (directly or indirectly)
  • Load JSON file into a task struct
  • For each task in the JSON file, run a go routine

Of course, handle all the errors that are involved with this:

  • JSON Errors
  • Too large of numbers
  • etc

JSON Structure

The JSON structure should look like this:

{
    "Tasks":
    [
        {
        "taskname": "Example Task",
        "taskdesc": "",
        "interval": 100,
        "cmd": "ls | wc -l" ,
        "icon": ""
        },

        {
        "taskname": "Second Example",
        "taskdesc": "catlol",
        "interval": 15,
        "cmd": "",
        "icon": "./assets/catlol.jpg"
        }
    ]
}

TODO

  • Create sample config
  • check these two locations for a config:
    • /home/user/.config/rem/tasks.json
    • /home/user/go/src/rem/tasks.json
  • More!