go-cache/value.go

14 lines
172 B
Go

package gocache
type value struct {
key string
data interface{}
}
func newValue(key string, data interface{}) *value {
return &value{
key: key,
data: data,
}
}