all repos — homestead @ 96406af5d2a46d6b19014a560858967d9f8439f1

Code for my website

switch to sqlite

Alan Pearce
commit

96406af5d2a46d6b19014a560858967d9f8439f1

parent

a2200662dd6a3142e48580050006856278404061

1 file changed, 13 insertions(+), 0 deletions(-)

changed files
A internal/storage/sqlite/file.go
@@ -0,0 +1,13 @@
+package sqlite + +import ( + "strings" +) + +func pathNameToFileName(pathname string) string { + if strings.HasSuffix(pathname, "/") { + pathname += "index.html" + } + + return pathname +}