gnotes

package module
v0.0.0-...-1099081 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gnotes

This is a simple program to populate templates for weekly notes in a file structure like this:

2023/
  03Mar/
    Week_of_the_06th.md

Run gnotes --output (or gnotes -o) to print JSON metadata for the current and previous weekly notes. Each contains file (the absolute path) and title.

and file contents like this:

# Week of the 06th (March 2023)

### Last Week's Remaining TODOs
- [ ] Add more features to `gnotes`!
- [ ] Automatically copy unchecked tasks from last week's note!


### Monday 06


### Tuesday 07


### Wednesday 08


### Thursday 09


### Friday 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectoryAndFile

func CreateDirectoryAndFile(dayOne time.Time) (*os.File, error)

func DayWithSuffix

func DayWithSuffix(day int) string

func DirNotExists

func DirNotExists(err error) bool

func GenerateNote

func GenerateNote(dates []time.Time, wr io.Writer) error

func GetDates

func GetDates(now time.Time) []time.Time

func GetLastWeekTODOs

func GetLastWeekTODOs(dayOne time.Time) ([]string, error)

func GetSuffix

func GetSuffix(day int) string

func IsPathError

func IsPathError(err error) bool

func NoteTitle

func NoteTitle(dayOne time.Time) string

func NotesPath

func NotesPath(dayOne time.Time) (string, string)

Types

This section is empty.

Directories

Path Synopsis
cmd
gnotes command

Jump to

Keyboard shortcuts

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