diff --git a/rootdir.go b/rootdir.go index 4680082..153e62f 100644 --- a/rootdir.go +++ b/rootdir.go @@ -31,6 +31,18 @@ const ( // } // // fmt.Printf("The maymoon root-dir is at %q \n", rootDir) +// +// One usage for this function is to use the path it returns in HTTPHandler. +// For example: +// +// rootDir, err := maymoon.RootDir() +// if nil != err { +// return err +// } +// +// // ... +// +// var handler http.Handler = maymoon.HTTPHandler(rootDir) func RootDir() (string, error) { {