func NewLog(msg string, cfg *Config) Log {
	return Log{
		Author:  cfg.Author,
		Email:   cfg.Email,
		Message: msg,
		Date:    time.Now().Unix(),
	}
}
NewLog instantiates a log
package main
import (
	"bytes"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"sort"
	"time"
)
type Log struct {
	Date    int64
	Email   string
	Author  string
	Message string
}