You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If you're on mac, you can simply `brew install go`
8
+
2. If you'd like a flexible go installation manager consider using gvm https://github.com/moovweb/gvm
9
+
3. For all other situations use the official go getting started guide: https://golang.org/doc/install
10
+
11
+
## Build
12
+
13
+
This project uses `make` to organize compilation, build, and test targets.
14
+
15
+
To build cmd/main.go, which will build the full static binary and pull in depedent packages, run:
16
+
```
17
+
$ make build
18
+
```
19
+
20
+
The resulting binary will be in the generated `build/` dir
21
+
22
+
```
23
+
$ make build
24
+
25
+
$ ls build/
26
+
ez-ec2
27
+
```
28
+
29
+
## Test
30
+
31
+
You can execute the unit tests for the instance selector with `make`:
32
+
33
+
```
34
+
$ make unit-test
35
+
```
36
+
37
+
### Run All Tests
38
+
39
+
The full suite includes license-test, go-report-card, and more. See the full list in the [makefile](./Makefile). NOTE: some tests require AWS Credentials to be configured on the system:
40
+
41
+
```
42
+
$ make test
43
+
```
44
+
45
+
## Format
46
+
47
+
To keep our code readable with go conventions, we use `goimports` to format the source code.
48
+
Make sure to run `goimports` before you submit a PR or you'll be caught by our tests!
49
+
50
+
You can use the `make fmt` target as a convenience
0 commit comments