[Go] basics and web
This commit is contained in:
40
slides/go/commands.md
Normal file
40
slides/go/commands.md
Normal file
@@ -0,0 +1,40 @@
|
||||
## init
|
||||
|
||||
```sh
|
||||
go mod tidy
|
||||
go mod init hello
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
```sh
|
||||
go build .
|
||||
go tool dist list ## list arch
|
||||
```
|
||||
|
||||
|
||||
## Types
|
||||
|
||||
int32,ing64,
|
||||
int -> depends on arch
|
||||
rune -> utf char
|
||||
string -> array of runes
|
||||
|
||||
|
||||
### Other
|
||||
|
||||
```sh
|
||||
ldd ./hello
|
||||
ls -lah
|
||||
strip hello
|
||||
```
|
||||
|
||||
[online compiler](https://godbolt.org)
|
||||
|
||||
|
||||
### Notes
|
||||
|
||||
- standard lib is huge
|
||||
|
||||
- [beginer go](https://gobyexample.com/)
|
||||
- [advanced go](https://go.dev/ref/spec)
|
||||
Reference in New Issue
Block a user