[logseq-plugin-git:commit] 2025-09-08T09:35:23.573Z

This commit is contained in:
YuanHui
2025-09-08 17:35:23 +08:00
parent 1c25911301
commit c70062d6f7
1256 changed files with 65938 additions and 45736 deletions

View File

@@ -1,31 +1,31 @@
- Go Syntax
- Package declaration
- Import packages
- Functions
- Statements and expression
- Go Variables
- type
- `int`
- `float`
- `string`
- `bool`
id:: 64ebf26b-33a0-428a-bd3f-7f1fb49ad891
- Declaring
- `var`
- `:=` only can be used inside functions
- Go Data Type
- **bool**
- **Numeric**
- | **Type** | **Size** |
|int | Platform Dependent |
|int8 | 8 bits/1 byte |
|int16 | 16 bits/2 byte |
|int32 | 32 bits/4 byte |
|int64 | 64 bits/8 byte |
| float32 | 32 bits or 4 bytes |
| float64 | 64 bits or 8 bytes |
- Complex Numbers
- | **Type** | **Property** |
| complex64 | Both real and imaginary part are float32 |
| complex128 | Both real and imaginary part are float64 |
- Go Syntax
- Package declaration
- Import packages
- Functions
- Statements and expression
- Go Variables
- type
- `int`
- `float`
- `string`
- `bool`
id:: 64ebf26b-33a0-428a-bd3f-7f1fb49ad891
- Declaring
- `var`
- `:=` only can be used inside functions
- Go Data Type
- **bool**
- **Numeric**
- | **Type** | **Size** |
|int | Platform Dependent |
|int8 | 8 bits/1 byte |
|int16 | 16 bits/2 byte |
|int32 | 32 bits/4 byte |
|int64 | 64 bits/8 byte |
| float32 | 32 bits or 4 bytes |
| float64 | 64 bits or 8 bytes |
- Complex Numbers
- | **Type** | **Property** |
| complex64 | Both real and imaginary part are float32 |
| complex128 | Both real and imaginary part are float64 |
- **string**