---
title: ShieldFromName
summary: ShieldFromName returns information about a particular shield site.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/shielding/fn.ShieldFromName/
---

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

```go
func ShieldFromName(n string) (*Shield, error)
```

ShieldFromName returns information about a particular shield site.

**Parameters**

- `n`: `string`

**Returns**

`(*Shield, error)`
