From ae0fa888f053f9c655a3bd7c7d5dd4a228481f48 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 18 Dec 2019 19:40:07 +0800 Subject: [PATCH] add iterate example for glist; improve variable name for ghttp.Server --- container/glist/glist_example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/glist/glist_example_test.go b/container/glist/glist_example_test.go index aaec66979..cdbdf3fc5 100644 --- a/container/glist/glist_example_test.go +++ b/container/glist/glist_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/gogf/gf/container/glist" ) -func Example_Basic() { +func Example_basic() { n := 10 l := glist.New() for i := 0; i < n; i++ { @@ -38,7 +38,7 @@ func Example_Basic() { //0 } -func Example_Iterate() { +func Example_iterate() { // concurrent-safe list. l := glist.NewFrom(garray.NewArrayRange(1, 10, 1).Slice(), true) // iterate reading from head.