# Install

### Installation Environment

* Use Golang 1.22.

Please refer to [golang installation](https://go.dev/doc/install/source) to download and install the Go compilation and running environment. After Go is installed, please create a new system variable GOPATH and point it to your code directory. To learn more about GOPATH, execute the command go help gopath.

### Download Go SDK

* [Download via Github](https://github.com/CESSProject/cess-go-sdk)
* [Historical version download](https://github.com/CESSProject/cess-go-sdk/releases)

### Install Go SDK

* go mod way

Add the following dependencies in the go.mod file, the following takes version 0.7.0 as an example. Other versions need to be replaced with corresponding version numbers.

```golang
require (
    github.com/CESSProject/cess-go-sdk v0.7.0
)
```

* source code method

```bash
go get github.com/CESSProject/cess-go-sdk@v0.7.0
```

### Verify SDK

Run the following code to view the Go SDK version:

```golang
package main

import (
  "fmt"
  sdkgo "github.com/CESSProject/cess-go-sdk"
)

func main() {
  fmt.Println("CESS Go SDK Version: ", sdkgo.Version)
}
```


---

# 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://doc.cess.network/developer/cess-sdk/sdk-golang/install.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.
