https://github.com/tlk/go-wat
WAT: a golang surprise
https://github.com/tlk/go-wat
Last synced: 4 months ago
JSON representation
WAT: a golang surprise
- Host: GitHub
- URL: https://github.com/tlk/go-wat
- Owner: tlk
- License: mit
- Created: 2022-07-16T13:07:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T18:05:37.000Z (almost 4 years ago)
- Last Synced: 2024-06-21T13:09:20.626Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Surprising properties of golang
```
$ go run github.com/tlk/go-wat@latest
the last element of b is: 456 (expected 456)
the last element of c is: 999 (expected 999)
the last element of y is: 999 (expected 456) wat?!
the last element of z is: 999 (expected 999)
```
Alternatively,
```
$ git clone git@github.com:tlk/go-wat.git
$ cd go-wat
$ go run main.go
```
### Acknowledgements
https://gist.github.com/erikcorry/5bcd95b916527969a4210a3aa32bd7a0