package main import ( "log" "github.com/therealfakemoot/obsidian-parser" ) func main() { l, tokens := lexer.Lex("[[foo/bar/butts.png]]") go l.Run() for t := range tokens { log.Printf("%#v\n", t) } }