aboutsummaryrefslogtreecommitdiff
path: root/doc/build_env.md
blob: de0492125c540c93a77945172f56b1b1f33c10a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Build environment
## `go version`
```
go version go1.17 linux/amd64
```
## Build commands
All commands are run in the project root directory.
### Compile development version to check for errors
```
go install -race github.com/HimbeerserverDE/mt-multiserver-proxy/cmd/mt-multiserver-proxy
```
### Install and run latest version
```
go install -race github.com/HimbeerserverDE/mt-multiserver-proxy/cmd/mt-multiserver-proxy@latest && ~/go/bin/mt-multiserver-proxy
```
## Formatting
```
goimports -l -w .
go fmt
```