12 lines
194 B
Go
12 lines
194 B
Go
|
package l_request
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestPool(t *testing.T) {
|
||
|
r := RequestPools.Get()
|
||
|
r.Url = "http://www.baidu.com"
|
||
|
RequestPools.ClearAndPut(r)
|
||
|
a := RequestPools.Get()
|
||
|
t.Log(a.Url)
|
||
|
}
|