diff options
Diffstat (limited to 'lexsurf.go')
-rw-r--r-- | lexsurf.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -14,6 +14,7 @@ type law struct { Url string Title string Abbr string + Redir string } type country struct { @@ -127,8 +128,8 @@ func main() { cc := strings.SplitN(file.Name(), ".", 2)[0] lawsByCC[cc] = map[string]law{} for _, law := range laws { - if law.Abbr != "" { - lawsByCC[cc][law.Abbr] = law + if law.Redir != "" { + lawsByCC[cc][law.Redir] = law } } } |