Skip to content

Commit 73087be

Browse files
committed
refactor(tpl): rename fn name LoadPageTpl
1 parent aaec23a commit 73087be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tpl/page.html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func init() {
8585
}
8686
}
8787

88-
func LoadPage(tplPath string) (*template.Template, error) {
88+
func LoadPageTpl(tplPath string) (*template.Template, error) {
8989
if len(tplPath) == 0 {
9090
return defaultPageTpl, nil
9191
}

src/vhostMux/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewServeMux(
4343
}
4444

4545
// template
46-
pageTpl, err := tpl.LoadPage(p.Template)
46+
pageTpl, err := tpl.LoadPageTpl(p.Template)
4747
errorHandler.LogError(err)
4848

4949
// register handlers

0 commit comments

Comments
 (0)