# .devcontainer

[![](https://github.com/codespaces/badge.svg)](https://codespaces.new/solarwinds/squadcast-sdk-go.git/tree/main)<br>

> **Remember to shutdown a GitHub Codespace when it is not in use!**

## Dev Containers Quick Start

The default location for usage snippets is the `samples` directory.

### Running a Usage Sample

A sample usage example has been provided in a `root.go` file. As you work with the SDK, it's expected that you will modify these samples to fit your needs. To execute this particular snippet, use the command below.

```
go run root.go
```

### Generating Additional Usage Samples

The speakeasy CLI allows you to generate more usage snippets. Here's how:

* To generate a sample for a specific operation by providing an operation ID, use:

```
speakeasy generate usage -s .speakeasy/out.openapi.yaml -l go -i {INPUT_OPERATION_ID} -o ./samples
```

* To generate samples for an entire namespace (like a tag or group name), use:

```
speakeasy generate usage -s .speakeasy/out.openapi.yaml -l go -n {INPUT_TAG_NAME} -o ./samples
```


---

# 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://developers.incidents.cloud.solarwinds.com/go-sdk/.devcontainer.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.
