Skip to content

Commit adf3eeb

Browse files
sago35deadprogram
authored andcommitted
content: update TinyGo version for site to 0.19.0
1 parent 3f39f6c commit adf3eeb

File tree

7 files changed

+18
-30
lines changed

7 files changed

+18
-30
lines changed

content/docs/guides/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This results in a `tinygo` binary in the `build` directory:
122122

123123
```shell
124124
$ ./build/tinygo version
125-
tinygo version 0.18.0 linux/amd64 (using go version go1.16 and LLVM version 11.0.0)
125+
tinygo version 0.19.0 linux/amd64 (using go version go1.16 and LLVM version 11.0.0)
126126
```
127127

128128
You have successfully built TinyGo from source. Congratulations!

content/docs/guides/webassembly.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ Note the `--no-debug` flag, which reduces the size of the final binary by removi
6060
debug symbols from the output. Also note that you must change the path to your Wasm file from `/go/src/github.com/myuser/myrepo/wasm-main.go` to whatever the actual path to your file is:
6161

6262
```
63-
docker run -v $GOPATH:/go -e "GOPATH=/go" tinygo/tinygo:0.18.0 tinygo build -o /go/src/github.com/myuser/myrepo/wasm.wasm -target wasm --no-debug /go/src/github.com/myuser/myrepo/wasm-main.go
63+
docker run -v $GOPATH:/go -e "GOPATH=/go" tinygo/tinygo:0.19.0 tinygo build -o /go/src/github.com/myuser/myrepo/wasm.wasm -target wasm --no-debug /go/src/github.com/myuser/myrepo/wasm-main.go
6464
```
6565

6666
Make sure you copy `wasm_exec.js` to your runtime environment:
6767

6868
```
69-
docker run -v $GOPATH:/go -e "GOPATH=/go" tinygo/tinygo:0.18.0 /bin/bash -c "cp /usr/local/tinygo/targets/wasm_exec.js /go/src/github.com/myuser/myrepo/
69+
docker run -v $GOPATH:/go -e "GOPATH=/go" tinygo/tinygo:0.19.0 /bin/bash -c "cp /usr/local/tinygo/targets/wasm_exec.js /go/src/github.com/myuser/myrepo/
7070
```
7171

7272
More complete examples are provided in the [wasm examples](https://github.com/tinygo-org/tinygo/tree/release/src/examples/wasm).

content/docs/reference/microcontrollers/pca10059.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,3 @@ Once you have installed nrfutil correctly, you will be able to flash the PCA1005
3636
- Plug your PCA10059 into your computer's USB port.
3737
- Press SW2 to go to bootloader.
3838
- Build and flash your TinyGo program using `tinygo flash -target=pca10059 [PATH TO YOUR PROGRAM]`
39-
40-
## Notes
41-
42-
As of TinyGo v0.18.0, it is not writable on Windows.
43-
44-
If you are using Windows, please do the following to flash.
45-
46-
```
47-
tinygo build -o pca10059-blinky1.hex -target=pca10059 examples/blinky1
48-
nrfutil pkg generate --hw-version 52 --sd-req 0x0 --application pca10059-blinky1.hex --application-version 1 pca10059-blinky1.zip
49-
nrfutil dfu usb-serial -pkg pca10059-blinky1.zip -p COM33 -b 115200
50-
```

content/getting-started/install/linux.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ You must have Go already installed on your machine in order to install TinyGo. W
2828
If you are using Ubuntu or another Debian based Linux on an Intel processor, download the DEB file from Github and install it using the following commands:
2929

3030
```shell
31-
wget https://github.com/tinygo-org/tinygo/releases/download/v0.18.0/tinygo_0.18.0_amd64.deb
32-
sudo dpkg -i tinygo_0.18.0_amd64.deb
31+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.19.0/tinygo_0.19.0_amd64.deb
32+
sudo dpkg -i tinygo_0.19.0_amd64.deb
3333
```
3434

3535
If you are on a Raspberry Pi or other ARM-based Linux computer, you should use this command instead:
3636

3737
```shell
38-
wget https://github.com/tinygo-org/tinygo/releases/download/v0.18.0/tinygo_0.18.0_arm.deb
39-
sudo dpkg -i tinygo_0.18.0_arm.deb
38+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.19.0/tinygo_0.19.0_arm.deb
39+
sudo dpkg -i tinygo_0.19.0_arm.deb
4040
```
4141

4242
You will need to ensure that the path to the `tinygo` executable file is in your `PATH` variable.
@@ -49,7 +49,7 @@ You can test that the installation is working properly by running this code whic
4949

5050
```shell
5151
$ tinygo version
52-
tinygo version 0.18.0 linux/amd64 (using go version go1.16 and LLVM version 11.0.0)
52+
tinygo version 0.19.0 linux/amd64 (using go version go1.16 and LLVM version 11.0.0)
5353
```
5454

5555
If you are only interested in compiling TinyGo code for WebAssembly then you are now done with the installation.

content/getting-started/install/macos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ brew tap tinygo-org/tools
1818
brew install tinygo
1919
```
2020

21-
Alternatively, you can download and extract the files manually by downloading [this](https://github.com/tinygo-org/tinygo/releases/download/v0.18.0/tinygo0.18.0.darwin-amd64.tar.gz) file.
21+
Alternatively, you can download and extract the files manually by downloading [this](https://github.com/tinygo-org/tinygo/releases/download/v0.19.0/tinygo0.19.0.darwin-amd64.tar.gz) file.
2222

2323
You can test that the installation is working properly by running this code which should display the version number:
2424

2525
```shell
2626
$ tinygo version
27-
tinygo version 0.18.0 darwin/amd64 (using go version go1.16 and LLVM version 11.0.0)
27+
tinygo version 0.19.0 darwin/amd64 (using go version go1.16 and LLVM version 11.0.0)
2828
```
2929

3030
If you are only interested in compiling TinyGo code for WebAssembly then you are done with the installation.

content/getting-started/install/using-docker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can use our Docker image to be able to run the TinyGo compiler on your compu
99

1010
## Installing
1111

12-
docker pull tinygo/tinygo:0.18.0
12+
docker pull tinygo/tinygo:0.19.0
1313

1414
## Using
1515

@@ -18,24 +18,24 @@ For your own code, you will probably want to use absolute paths.
1818

1919
A docker container exists for easy access to the TinyGo CLI. For example, to compile `wasm.wasm` for the WebAssembly export example:
2020

21-
docker run --rm -v $(pwd):/src tinygo/tinygo:0.18.0 tinygo build -o wasm.wasm -target=wasm examples/wasm/export
21+
docker run --rm -v $(pwd):/src tinygo/tinygo:0.19.0 tinygo build -o wasm.wasm -target=wasm examples/wasm/export
2222

2323
See the [WebAssembly page](../../../docs/guides/webassembly) for more information on executing the compiled
2424
WebAssembly.
2525

2626
To compile `blinky1.hex` targeting an ARM microcontroller, such as the PCA10040:
2727

28-
docker run --rm -v $(pwd):/src tinygo/tinygo:0.18.0 tinygo build -o /src/blinky1.hex -size=short -target=pca10040 examples/blinky1
28+
docker run --rm -v $(pwd):/src tinygo/tinygo:0.19.0 tinygo build -o /src/blinky1.hex -size=short -target=pca10040 examples/blinky1
2929

3030
To compile `blinky1.hex` targeting an AVR microcontroller such as the Arduino:
3131

32-
docker run --rm -v $(pwd):/src tinygo/tinygo:0.18.0 tinygo build -o /src/blinky1.hex -size=short -target=arduino examples/blinky1
32+
docker run --rm -v $(pwd):/src tinygo/tinygo:0.19.0 tinygo build -o /src/blinky1.hex -size=short -target=arduino examples/blinky1
3333

3434
For projects that have remote dependencies outside of the standard library and
3535
go code within your own project, you will need to map your entire `$GOPATH`
3636
into the docker image for those dependencies to be found:
3737

38-
docker run -v $GOPATH:/go -e "GOPATH=/go" tinygo/tinygo:0.18.0 tinygo build -o /go/src/github.com/myuser/myrepo/wasm.wasm -target wasm --no-debug /go/src/github.com/myuser/myrepo/wasm-main.go
38+
docker run -v $GOPATH:/go -e "GOPATH=/go" tinygo/tinygo:0.19.0 tinygo build -o /go/src/github.com/myuser/myrepo/wasm.wasm -target wasm --no-debug /go/src/github.com/myuser/myrepo/wasm-main.go
3939

4040
**note: At this time, tinygo does not resolve dependencies from the /vendor/ folder within your project.**
4141

content/getting-started/install/windows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can test that the installation was successful by running the `version` comma
3535

3636
```shell
3737
> tinygo version
38-
tinygo version 0.18.0 windows/amd64 (using go version go1.16 and LLVM version 11.0.0)
38+
tinygo version 0.19.0 windows/amd64 (using go version go1.16 and LLVM version 11.0.0)
3939
```
4040

4141
Upgrading to the latest TinyGo version can be done via scoop with:
@@ -69,7 +69,7 @@ Upgrading to the latest versions can be as easy as:
6969

7070
- Choose the download link for Microsoft Windows, Windows 7 or later, Intel 64-bit processor.
7171

72-
- Download the TinyGo binary for Windows file from https://github.com/tinygo-org/tinygo/releases/download/v0.18.0/tinygo0.18.0.windows-amd64.zip
72+
- Download the TinyGo binary for Windows file from https://github.com/tinygo-org/tinygo/releases/download/v0.19.0/tinygo0.19.0.windows-amd64.zip
7373

7474
- Decompress the file like this:
7575

@@ -89,7 +89,7 @@ Upgrading to the latest versions can be as easy as:
8989

9090
```
9191
> tinygo version
92-
tinygo version 0.18.0 windows/amd64 (using go version go1.16 and LLVM version 11.0.0)
92+
tinygo version 0.19.0 windows/amd64 (using go version go1.16 and LLVM version 11.0.0)
9393
```
9494

9595
### Flashing boards

0 commit comments

Comments
 (0)