hkford / diary-manager

Diary manager written in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

diary-manager

test status

Diary manager written in Golang

Usage

init

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

Show diary of specified date.

# Show diary of 2020/01/01
$ mydiary show --date 20200101

Developing

Coding

This repo contains Dockerfile so it is easy to build the diary-manager using Docker, especially the VSCode Dev Containers extension.

Unit test

Run the following command. This run all tests in current directory and all of its subdirectories.

$ go test -v ./...

Cross compile

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

About

Diary manager written in Golang


Languages

Language:Go 97.7%Language:Dockerfile 2.3%