Compare commits
3 Commits
main
...
9a1596e932
| Author | SHA1 | Date | |
|---|---|---|---|
|
9a1596e932
|
|||
|
5ce1ec676c
|
|||
|
361f068232
|
4
go.mod
4
go.mod
@@ -1,5 +1,3 @@
|
||||
module code.capytal.cc/loreddev/x
|
||||
|
||||
go 1.25.2
|
||||
|
||||
require golang.org/x/net v0.46.0
|
||||
go 1.23.3
|
||||
|
||||
@@ -228,7 +228,7 @@ func (t *HotTemplate) run() (Template, error) {
|
||||
err = fmt.Errorf("HotTemplate: first argument is not of type fs.FS")
|
||||
break
|
||||
}
|
||||
patterns, ok := method.args[1].([]string)
|
||||
patterns, ok := method.args[0].([]string)
|
||||
if !ok {
|
||||
err = fmt.Errorf("HotTemplate: second argument is not of type []string")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user