---
title: Entry
summary: Entry represents a KV store value.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/struct.Entry/
---

**Kind:** Struct  
**Module:** [kvstore](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/kvstore/kvstore.go#L61

```go
type Entry struct {
	io.Reader
	// contains filtered or unexported fields
}
```

Extends `io.Reader`.

Entry represents a KV store value.

It embeds an [io.Reader](https://pkg.go.dev/io#Reader) which holds the contents of the value, and
can be passed to functions that accept an [io.Reader](https://pkg.go.dev/io#Reader).

For smaller values, an [Entry.String](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/struct.Entry/#method-String) method is provided to consume the
contents of the underlying reader and return a string.

Do not mix-and-match these approaches: use either the [io.Reader](https://pkg.go.dev/io#Reader) or
the [Entry.String](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/struct.Entry/#method-String) method, not both.

## Fields

### Reader

**Type:** `io.Reader`

## Methods

### Generation

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/kvstore/kvstore.go#L96

```go
func (e *Entry) Generation() uint64
```

**Returns**

`uint64`

### Meta

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/kvstore/kvstore.go#L92

```go
func (e *Entry) Meta() []byte
```

**Returns**

`[]byte`

### String

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/kvstore/kvstore.go#L76

```go
func (e *Entry) String() string
```

String consumes the entire contents of the Entry and returns it as a
string.

Take care when using this method, as large values might exceed the
per-request memory limit.

**Returns**

`string`
