diff options
Diffstat (limited to 'lexsurf.go')
-rw-r--r-- | lexsurf.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,6 +26,11 @@ func (c country) HasPlaceholder() bool { return strings.Contains(c.SearchURL, "%s") } +func (c SearchContext) HasJSONLaws() bool { + _, ok := lawsByCC[c.TLD] + return ok +} + var countries = map[string]country{} var lawsByCC = map[string]map[string]law{} |