add doc strings

This commit is contained in:
ajatprabha
2021-10-04 20:54:37 +05:30
committed by Ken Hibino
parent d0b72f135c
commit cb4ccea025
2 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
"path/filepath"
)
// NewStaticContentHandler creates a http.Handler which can be used to serve static files.
func NewStaticContentHandler(contents embed.FS, staticDirPath, indexFileName string) http.Handler {
return &staticContentHandler{
contents: contents,