package main

import (
	// "bytes"
	"flag"
	// "fmt"
	"io"
	"log"
	"os"
)

func LoadNote(r io.Reader) (interface{}, error) {
	// var buf bytes.Buffer

	return nil, nil
}

func main() {
	var (
		note string
	)

	flag.StringVar(&note, "note", "demo.md", "filename of test note")
	flag.Parse()

	f, err := os.Open(note)
	if err != nil {
		log.Fatalf("error opening markdown file: %s\n", err)
	}

	LoadNote(f)
}