Diary manager written in Golang
Generate diary templates. They are composed of files such as 2020/202001.txt
. Each file has the following format.
2020,January,01,Wed
2020,January,02,Thur
# Generate template of 2020
$ mydiary init --year 2020
Show diary of specified date.
# Show diary of 2020/01/01
$ mydiary show --date 20200101
This repo contains Dockerfile
so it is easy to build the diary-manager using Docker
, especially the VSCode Dev Containers extension.
Run the following command. This run all tests in current directory and all of its subdirectories.
$ go test -v ./...
If you use macOS and developing inside Docker containers, you need to cross-compile for macOS.
$ GOOS=darwin GOARCH=amd64 go build -o mydiary main.go