"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/stringy/slice.go" between
nsq-1.2.0.tar.gz and nsq-1.2.1.tar.gz

About: nsq is a realtime distributed and and decentralized messaging platform.

slice.go  (nsq-1.2.0):slice.go  (nsq-1.2.1)
skipping to change at line 30 skipping to change at line 30
} }
} }
if !found { if !found {
s = append(s, entry) s = append(s, entry)
} }
} }
return s return s
} }
func Uniq(s []string) (r []string) { func Uniq(s []string) (r []string) {
outerLoop:
for _, entry := range s { for _, entry := range s {
found := false
for _, existing := range r { for _, existing := range r {
if existing == entry { if existing == entry {
found = true continue outerLoop
break
} }
} }
if !found { r = append(r, entry)
r = append(r, entry)
}
} }
return return
} }
 End of changes. 4 change blocks. 
6 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)