summaryrefslogtreecommitdiff
path: root/lexsurf.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexsurf.go')
-rw-r--r--lexsurf.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/lexsurf.go b/lexsurf.go
index 1772878..9c88052 100644
--- a/lexsurf.go
+++ b/lexsurf.go
@@ -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
}
}
}