Skip to content

Commit

Permalink
doc: adjust README.md regarding to your first project (hybridgroup#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2thomas committed Jul 6, 2023
1 parent a6d6571 commit b0ee8b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ Create a new folder and a new Go module project.

```sh
mkdir ~/my_gobot_example
cd ~/my_gobot_example
go mod init my.gobot.example.com
```

Copy your example file besides the go.mod file, import the requirements and build.

```sh
cp /<path to gobot folder>/examples/raspi_blink.go ~/my_gobot_example/
go mod tidy
env GOOS=linux GOARCH=arm GOARM=5 go build -o ./output/my_raspi_bink raspi_blink.go
```
Expand Down

0 comments on commit b0ee8b9

Please sign in to comment.