mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
add iterate example for glist; improve variable name for ghttp.Server
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user