From: Sergey Matveev Date: Wed, 4 Feb 2026 10:25:40 +0000 (+0300) Subject: Render mirrors X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f339739f29168301136a8ed2174e4baac67c42f2;p=linksexp.git Render mirrors --- diff --git a/example.rec b/example.rec index 916103f..a1bc689 100644 --- a/example.rec +++ b/example.rec @@ -1,6 +1,6 @@ %rec: bookmark %mandatory: title url -%allowed: cat feed note +%allowed: cat feed note mirror %unique: title url note title: Блог Stargrave diff --git a/swg.go b/swg.go index e825067..c8ca125 100644 --- a/swg.go +++ b/swg.go @@ -59,6 +59,9 @@ func swg(cats []string, data map[string][]map[string][]string) { fmt.Printf(" => %s feed%d\r\n", feed, i) } } + for i, mirror := range ent["mirror"] { + fmt.Printf(" => %s mirror%d\r\n", mirror, i) + } } } }