---
title: edgedict
summary: Package edgedict provides a read-only interface to edge dictionaries. Refer to https://developer.fastly.com/reference/api/dictionaries/ for more information.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/edgedict/
---

**Kind:** Module  
**Package:** compute-sdk-go v1.11.0  
**Path:** `github.com/fastly/compute-sdk-go/edgedict`

Package edgedict provides a read-only interface to edge dictionaries. Refer
to https://developer.fastly.com/reference/api/dictionaries/ for more
information.

Deprecated: Use the configstore package instead.

## Structs

| Name | Summary |
| --- | --- |
| [Dictionary](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/edgedict/struct.Dictionary/) (deprecated) | Dictionary is a read-only representation of an edge dictionary. |

## Functions

| Name | Summary |
| --- | --- |
| [Open](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/edgedict/fn.Open/) (deprecated) | Open returns an edge dictionary with the given name. Names are case sensitive. |

## Variables

### ErrDictionaryNameEmpty

**Type:** `error`  
**Default:** `errors.New("dictionary name was empty")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/edgedict/dictionary.go#L18

ErrDictionaryNameEmpty indicates the given dictionary name
was empty.

### ErrDictionaryNameInvalid

**Type:** `error`  
**Default:** `errors.New("dictionary name contained invalid characters")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/edgedict/dictionary.go#L22

ErrDictionaryNameInvalid indicates the given dictionary name
was invalid.

### ErrDictionaryNameTooLong

**Type:** `error`  
**Default:** `errors.New("dictionary name too long")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/edgedict/dictionary.go#L26

ErrDictionaryNameTooLong indicates the given dictionary name
was too long.

### ErrDictionaryNotFound

**Type:** `error`  
**Default:** `errors.New("dictionary not found")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/edgedict/dictionary.go#L14

ErrDictionaryNotFound indicates the named dictionary doesn't exist.

### ErrKeyNotFound

**Type:** `error`  
**Default:** `errors.New("key not found")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/edgedict/dictionary.go#L29

ErrKeyNotFound indicates a key isn't in a dictionary.

### ErrUnexpected

**Type:** `error`  
**Default:** `errors.New("unexpected error")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/edgedict/dictionary.go#L32

ErrUnexpected indicates an unexpected error occurred.
