Skip to content

Commit

Permalink
Updated building.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s0nerik committed Feb 15, 2021
1 parent 996dc65 commit 961ad2b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@

## macOS

1. Install [Go](https://golang.org/) via [brew](https://brew.sh/)
### Install [Go](https://golang.org/) via [brew](https://brew.sh/)

```bash
$ brew install go
$ go version
go version go1.10.2 darwin/amd64
```

1. Install Go cross compilation tool - [gox](https://github.com/mitchellh/gox) via [brew](https://brew.sh/)
### Install Go cross compilation tool - [gox](https://github.com/mitchellh/gox) via [brew](https://brew.sh/)

```bash
$ brew install gox
$ brew info gox
gox: stable 0.4.0 (bottled)
```

1. Check [GOPATH](https://golang.org/cmd/go/#hdr-GOPATH_environment_variable)
### Check [GOPATH](https://golang.org/cmd/go/#hdr-GOPATH_environment_variable)

```bash
$ printenv GOPATH
/Users/<user>/go
```

1. If [GOPATH](https://golang.org/cmd/go/#hdr-GOPATH_environment_variable) not defined, add it to bash profile
### If [GOPATH](https://golang.org/cmd/go/#hdr-GOPATH_environment_variable) not defined, add it to bash profile

```bash
$ echo 'export GOPATH="$HOME/go"' >> ~/.bash_profile
Expand All @@ -34,19 +34,19 @@ $ printenv GOPATH
/Users/<user>/go
```

1. Get goloc package
### Get goloc package

```bash
go get github.com/s0nerik/goloc
```

1. Move to package folder
### Move to package folder

```bash
cd <GOPATH>/src/github.com/s0nerik/goloc
```

1. Run build script and wait
### Run build script and wait

```bash
$ sh build.sh
Expand Down

0 comments on commit 961ad2b

Please sign in to comment.