---
title: ListIter
summary: ListIter is an iterator over pages of List results.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/kvstore/struct.ListIter/
---

**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#L266

```go
type ListIter struct {
	// contains filtered or unexported fields
}
```

ListIter is an iterator over pages of List results.

## Methods

### Err

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

```go
func (it *ListIter) Err() error
```

Err returns any error encountered during the iteration.

**Returns**

`error`

### Next

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

```go
func (it *ListIter) Next() bool
```

Next advances the list iterator to the next page of results.  Returns false when the iteration is complete.

**Returns**

`bool`

### Page

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

```go
func (it *ListIter) Page() ListPage
```

Page returns the current page of results.

**Returns**

`ListPage`
