Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

2 changed files with 2 additions and 4 deletions

View file

@ -26,10 +26,8 @@ type URLs struct {
Prefix string Prefix string
} }
type Repl map[string]string
// Given a name and replacements, return a rendered path component of a URL // Given a name and replacements, return a rendered path component of a URL
func (urls URLs) Reverse(name string, replacements Repl) string { func (urls URLs) Reverse(name string, replacements map[string]string) string {
pattern := urls.URLs[name].Path pattern := urls.URLs[name].Path
for key, val := range replacements { for key, val := range replacements {

2
go.mod
View file

@ -1,3 +1,3 @@
module forgejo.gwairfelin.com/max/gispatcho module gitea.gwairfelin.com/max/gispatcho
go 1.23.5 go 1.23.5