github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/net/http/dedup/config.go (about) 1 package dedup 2 3 import "golang.org/x/net/html" 4 5 // !DOCTYPE html head 6 // !DOCTYPE html body 7 // 0 1 2 8 const cScaffoldLvls = 2 9 10 const numTotal = 3 // comparable html docs, including base doc 11 const stageMax = 4 // weedstages 12 13 var URLs = []string{ 14 "www.welt.de/politik/ausland/article146154432/Tuerkische-Bodentruppen-marschieren-im-Nordirak-ein.html", 15 "www.economist.com/news/britain/21663648-hard-times-hard-hats-making-britain-make-things-again-proving-difficult", 16 "www.economist.com/news/americas/21661804-gender-equality-good-economic-growth-girl-power", 17 } 18 19 func attrX(attributes []html.Attribute, key string) (s string) { 20 for _, a := range attributes { 21 if key == a.Key { 22 s = a.Val 23 break 24 } 25 } 26 return 27 }