1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Remove examples from godoc.

This commit is contained in:
Vladimir Mihailenco
2013-09-29 11:48:45 +03:00
parent 8f7818ea4d
commit db0cb86282
2 changed files with 8 additions and 166 deletions

View File

@ -47,7 +47,7 @@ func ExampleClient() {
// <nil> bar
}
func ExamplePipeline2() {
func ExampleClient_Pipelined() {
client := redis.NewTCPClient(&redis.Options{
Addr: ":6379",
})
@ -146,13 +146,13 @@ func ExamplePubSub() {
// &{mychannel hello} <nil>
}
func Get(client *redis.Client, key string) *redis.StringCmd {
cmd := redis.NewStringCmd("GET", key)
client.Process(cmd)
return cmd
}
func Example_CustomCommand() {
Get := func(client *redis.Client, key string) *redis.StringCmd {
cmd := redis.NewStringCmd("GET", key)
client.Process(cmd)
return cmd
}
func ExampleCustomCommand() {
client := redis.NewTCPClient(&redis.Options{
Addr: ":6379",
})