golang wikitext parser from scratch

245 views Asked by At

I am asked to build a wiki in golang. Some of the editors are familiar with the wikitext, so they want to keep it. I find it's really hard to build a wikitext parser from scratch and there's no open source golang parser. Can anyone give me some suggestion? I have searched go.pkg, there's no available pkg

1

There are 1 answers

1
Petter Daae On

You could call an external tool (https://github.com/5j9/wikitextparser) from your go code with https://pkg.go.dev/os/exec, which is probably easier to parse than raw wikitext.