add iterate example for glist; improve variable name for ghttp.Server

This commit is contained in:
John
2019-12-18 19:45:46 +08:00
parent df99036d41
commit 50018773b7

View File

@ -69,7 +69,7 @@ func Example_iterate() {
return true
})
fmt.Println()
// iterate reading from head using IteratorDesc.
// iterate reading from tail using IteratorDesc.
l.IteratorDesc(func(e *glist.Element) bool {
fmt.Print(e.Value)
return true