---
title: OpenPenaltyBox
summary: OpenPenaltyBox opens a penalty box with the given name, creating it if it doesn't already exist. The penalty box name may be up to 64 characters long. Entry names in this penalty box are also limited to 64 characters.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/erl/fn.OpenPenaltyBox/
---

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

```go
func OpenPenaltyBox(name string) *PenaltyBox
```

OpenPenaltyBox opens a penalty box with the given name, creating it
if it doesn't already exist.  The penalty box name may be up to 64
characters long.  Entry names in this penalty box are also limited to
64 characters.

**Parameters**

- `name`: `string`

**Returns**

`*PenaltyBox`
