Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23a78da

Browse files
authored
声明byte类型的字节数组:var result []byte
1 parent 3c56aad commit 23a78da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

go/note.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ func main() {
283283

284284
2. 数组声明:数组声明需要指定元素类型及元素个数. var balance [10] float32
285285

286-
3.初始化数组:var balance = [5]float32{1000.0, 2.0, 3.4, 7.0, 50.0}
286+
3. 初始化数组:var balance = [5]float32{1000.0, 2.0, 3.4, 7.0, 50.0}
287+
288+
4. 声明byte类型的字节数组:var result []byte
287289

288290
## 七、指针
289291
1. 指针声明:var fp *float32 //* 号用于指定变量是作为一个指针

0 commit comments

Comments
 (0)