You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
408 B
Go
33 lines
408 B
Go
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(¬e, "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)
|
|
}
|