From 3a434fd3504c664cafab5bd51369ee12a8b6c874 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Wed, 4 Jan 2012 10:08:41 +0100 Subject: [PATCH] Add import statement to examples --- README | 2 ++ cache.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README b/README index eccb62e..fe63a29 100644 --- a/README +++ b/README @@ -6,6 +6,8 @@ Installation: goinstall github.com/pmylund/go-cache Usage: + import "github.com/pmylund/go-cache" + // Create a cache with a default expiration time of 5 minutes, and which purges // expired items every 30 seconds c := cache.New(5*time.Minute, 30*time.Second) diff --git a/cache.go b/cache.go index 161b694..8470070 100644 --- a/cache.go +++ b/cache.go @@ -16,6 +16,8 @@ import ( // goinstall github.com/pmylund/go-cache // // Usage: +// import "github.com/pmylund/go-cache" +// // // Create a cache with a default expiration time of 5 minutes, and which purges // // expired items every 30 seconds // c := cache.New(5*time.Minute, 30*time.Second)