# Preface

If you need to access the CESS chain, conduct transactions, upload and download files, etc., you can install Go SDK first. This article provides multiple installation methods for Go SDK.

### SDK source code and API documentation

Please visit [GitHub](https://github.com/CESSProject/cess-go-sdk) to obtain the Go SDK source code. For more information, see [the Go SDK API documentation](https://pkg.go.dev/github.com/CESSProject/cess-go-sdk).

### Sample Program

Go SDK provides a wealth of sample programs for your reference or direct use. Examples include the following:

| Sample Files                                                                                                | Sample Content                                                                                                                                            |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NewChainClient](https://github.com/CESSProject/cess-go-sdk/blob/main/chain/chain.go#L99)                   | [Initialize Client](/developer/cess-sdk/sdk-golang/initialization.md)                                                                                     |
| [StoreFile](https://github.com/CESSProject/cess-go-sdk/blob/main/core/process/gateway.go#L49)               | [Store files on the gateway](/developer/cess-sdk/sdk-golang/object_file/storefile.md)                                                                     |
| [StoreObject](https://github.com/CESSProject/cess-go-sdk/blob/main/core/process/gateway.go#L157)            | [Store objects on the gateway](/developer/cess-sdk/sdk-golang/object_file/storeobject.md)                                                                 |
| [RetrieveFile](https://github.com/CESSProject/cess-go-sdk/blob/main/core/process/gateway.go#L218)           | [Retrieve files from the gateway](/developer/cess-sdk/sdk-golang/object_file/retrievefile.md)                                                             |
| [RetrieveObject](https://github.com/CESSProject/cess-go-sdk/blob/main/core/process/gateway.go#L300)         | [Retrieve objects from the gateway](/developer/cess-sdk/sdk-golang/object_file/retrieveobject.md)                                                         |
| [StoreFileToMiners](https://github.com/CESSProject/cess-go-sdk/blob/main/core/process/storage.go#L50)       | [Store a file to miners](https://github.com/CESSProject/doc-v2/blob/main/developer/cess-sdk/sdk-golang/object_file/StoreFileToMiners/README.md)           |
| [RetrieveFileFromMiners](https://github.com/CESSProject/cess-go-sdk/blob/main/core/process/storage.go#L175) | [Retrieve a file from miners](https://github.com/CESSProject/doc-v2/blob/main/developer/cess-sdk/sdk-golang/object_file/RetrieveFileFromMiners/README.md) |


---

# 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/preface.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.
