1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-19 07:22:17 +03:00

readme: Fix example.

This commit is contained in:
Vladimir Mihailenco 2012-08-11 17:47:33 +03:00
parent 2f4156dd04
commit d2e8ee8bf8

View File

@ -53,12 +53,12 @@ Example 2:
import "github.com/vmihailenco/redis"
openConn := func() (io.ReadWriter, error) {
openConn := func() (io.ReadWriteCloser, error) {
fmt.Println("Connecting...")
return net.Dial("tcp", ":6379")
}
closeConn := func(conn io.ReadWriter) error {
closeConn := func(conn io.ReadWriteCloser) error {
fmt.Println("Disconnecting...")
conn.Close()
return nil