website: make quickstart module init a little easier to follow

related to https://github.com/gokrazy/tools/issues/15
This commit is contained in:
Michael Stapelberg 2020-06-20 13:21:54 +02:00
parent 2cbd3c9442
commit 5dbb772825
2 changed files with 22 additions and 4 deletions

View File

@ -65,8 +65,17 @@ body {
</p>
<h1>Install the gokrazy packer</h1>
<pre>INSTANCE=gokrazy/hello; mkdir -p ~/${INSTANCE?} && cd ~/${INSTANCE?} && echo module ${INSTANCE?} > go.mod
go get -u github.com/gokrazy/tools/cmd/gokr-packer</pre>
<p>
Create a directory for this gokrazy instance and initialize a Go module:
</p>
<pre>INSTANCE=gokrazy/hello
mkdir -p ~/${INSTANCE?}
cd ~/${INSTANCE?}
go mod init hello</pre>
<p>
Then, install the gokr-packer:
</p>
<pre>go get github.com/gokrazy/tools/cmd/gokr-packer@latest</pre>
<h1>Overwrite an SD card with gokrazy</h1>
<p>

View File

@ -27,8 +27,17 @@ menu:
</p>
<h1>Install the gokrazy packer</h1>
<pre>INSTANCE=gokrazy/hello; mkdir -p ~/${INSTANCE?} && cd ~/${INSTANCE?} && echo module ${INSTANCE?} > go.mod
go get -u github.com/gokrazy/tools/cmd/gokr-packer</pre>
<p>
Create a directory for this gokrazy instance and initialize a Go module:
</p>
<pre>INSTANCE=gokrazy/hello
mkdir -p ~/${INSTANCE?}
cd ~/${INSTANCE?}
go mod init hello</pre>
<p>
Then, install the gokr-packer:
</p>
<pre>go get github.com/gokrazy/tools/cmd/gokr-packer@latest</pre>
<h1>Overwrite an SD card with gokrazy</h1>
<p>