From 3969366c627be53413118b3680db8b9b40dcf3c7 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Sat, 5 Dec 2015 14:45:05 +0100 Subject: [PATCH] fixed formatting --- cache.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cache.go b/cache.go index 26844ee..4da5092 100644 --- a/cache.go +++ b/cache.go @@ -13,13 +13,13 @@ import ( type Item struct { - Object interface{} - Expiration int64 + Object interface{} + Expiration int64 } type Node struct { - Expiration int64 - Key string + Expiration int64 + Key string } func (node Node) Less(than llrb.Item) bool { @@ -50,12 +50,12 @@ type Cache struct { } type cache struct { - defaultExpiration time.Duration - items map[string]Item - mu sync.RWMutex - onEvicted func(string, interface{}) - janitor *janitor - sortedItems *llrb.LLRB + defaultExpiration time.Duration + items map[string]Item + mu sync.RWMutex + onEvicted func(string, interface{}) + janitor *janitor + sortedItems *llrb.LLRB } // Add an item to the cache, replacing any existing item. If the duration is 0