|
6 | 6 | ## My Solutions
|
7 | 7 | | kyu | Codewars Kate | My Solutions |
|
8 | 8 | | --- | --- | --- |
|
9 | | -| 8 | [Highest and Lowest](https://www.codewars.com/kata/554b4ac871d6813a03000035) | [highest_and_lowest.go](https://github.com/adrianblade/codewars_golang_solution/8kyu/highest_and_lowest/src/highest_and_lowest.go) | |
| 9 | +| 8 | [Highest and Lowest](https://www.codewars.com/kata/554b4ac871d6813a03000035) | [highest_and_lowest.go](https://github.com/adrianblade/codewars_golang_solution/8kyu/highest_and_lowest/src/highest_and_lowest.go) | |
| 10 | + |
| 11 | + |
| 12 | +## To execute script |
| 13 | + |
| 14 | +To run the program, put the code in hello-world.go and use go run. |
| 15 | + |
| 16 | +`$ go run hello-world.go |
| 17 | +hello world` |
| 18 | + |
| 19 | +Sometimes we’ll want to build our programs into binaries. We can do this using go build. |
| 20 | + |
| 21 | +`$ go build hello-world.go |
| 22 | +$ ls |
| 23 | +hello-world hello-world.go` |
| 24 | + |
| 25 | +We can then execute the built binary directly. |
| 26 | + |
| 27 | +`$ ./hello-world |
| 28 | +hello world` |
| 29 | + |
| 30 | +## To execute test |
| 31 | + |
| 32 | +go test # to run your tests |
| 33 | + |
0 commit comments