# Go

### Installation <a href="#installation" id="installation"></a>

```
$ go get github.com/progressively-crew/sdk-go@latest
```

### Usage <a href="#usage" id="usage"></a>

#### Create an SDK (Build method)

```go
sdk := progressively.SdkBuilder("valid-sdk-key", "BACKEND_URL").Build()
```

**AddField**

Fields is an option that allows passing data about your users to create targeting strategies. For instance, you can set an email field, and in Progressively's dashboard, you can create a rule that only targets people that use an expected domain:

```go
sdk := progressively.SdkBuilder("valid-sdk-key", "BACKEND_URL").AddField("email", "marvin.frachet@something.com").Build()
```

**Evaluate**

```go
varValue := sdk.Evaluate("theFlagKey")
```

**LoadFlags**

```go
sdk.LoadFlags()
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://progressively.gitbook.io/docs/developpers/sdks/go.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
