diff --git a/README.md b/README.md index 3905a0e..70593f0 100644 --- a/README.md +++ b/README.md @@ -13,17 +13,19 @@ You can use `go get -u -a` for update all installed packages. ## Example - import ( - "github.com/rainycape/memcache" - ) +```go +import ( + "github.com/rainycape/memcache" +) - func main() { - mc := memcache.New("10.0.0.1:11211", "10.0.0.2:11211", "10.0.0.3:11212") - mc.Set(&memcache.Item{Key: "foo", Value: []byte("my value")}) +func main() { + mc := memcache.New("10.0.0.1:11211", "10.0.0.2:11211", "10.0.0.3:11212") + mc.Set(&memcache.Item{Key: "foo", Value: []byte("my value")}) - it, err := mc.Get("foo") - ... - } + it, err := mc.Get("foo") + ... +} +``` ## About