info_tfgrid/collections/developers/go/grid3_go_installation.md

45 lines
914 B
Markdown
Raw Normal View History

2024-04-29 17:49:02 +00:00
<h1>Go Client Installation</h1>
<h2>Table of Contents</h2>
- [Introduction](#introduction)
- [Requirements](#requirements)
- [Steps](#steps)
- [References](#references)
***
## Introduction
We present the general steps to install the ThreeFold Grid3 Go Client.
## Requirements
Make sure that you have at least Go 1.19 installed on your machine.
- [Go](https://golang.org/doc/install) >= 1.19
## Steps
* Create a new directory
2024-05-14 15:20:17 +00:00
```bash
2024-04-29 17:49:02 +00:00
mkdir tf_go_client
```
* Change directory
2024-05-14 15:20:17 +00:00
```bash
2024-04-29 17:49:02 +00:00
cd tf_go_client
```
* Creates a **go.mod** file to track the code's dependencies
2024-05-14 15:20:17 +00:00
```bash
2024-04-29 17:49:02 +00:00
go mod init main
```
* Install the Grid3 Go Client
2024-05-14 15:20:17 +00:00
```bash
2024-04-29 17:49:02 +00:00
go get github.com/threefoldtech/tfgrid-sdk-go/grid-client
```
This will make Grid3 Go Client packages available to you.
## References
For more information, you can read the official [Go documentation](https://go.dev/doc/).