pkg/kiwi package. This gives you a fully functional markdown filesystem server without running a separate process.
Installation
Quick start
Create a KiwiFS server, configure it with options, and start serving.Options
Configure KiwiFS behavior by passing option functions tokiwi.New.
Methods
Thekiwi.Server type provides these methods.
Mount alongside an existing server
Usesrv.Handler() to mount KiwiFS as a route within your existing HTTP application.
When mounting under a subpath, use
http.StripPrefix so KiwiFS receives paths relative to its root.Programmatic file operations
Usesrv.Pipeline() to read and write files without going through HTTP.