Compare commits
No commits in common. "main" and "v0.1.0" have entirely different histories.
2 changed files with 2 additions and 4 deletions
|
|
@ -26,10 +26,8 @@ type URLs struct {
|
|||
Prefix string
|
||||
}
|
||||
|
||||
type Repl map[string]string
|
||||
|
||||
// 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
|
||||
|
||||
for key, val := range replacements {
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,3 +1,3 @@
|
|||
module forgejo.gwairfelin.com/max/gispatcho
|
||||
module gitea.gwairfelin.com/max/gispatcho
|
||||
|
||||
go 1.23.5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue