Skip to content

Commit f939704

Browse files
committed
update: Go 语言设计与实现
1 parent 65fc5f0 commit f939704

13 files changed

+1239
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- [云计算](#云计算)
1313
- [编辑器](#编辑器)
1414
- [性能优化](#性能优化)
15-
- [eBPF](#eBPF)
15+
- [eBPF](#ebpf)
1616
- [其他](#其他)
1717

1818
## 操作
@@ -120,6 +120,10 @@
120120

121121
<img src="./images/on-java8.png" width="300"/>
122122

123+
- [《Go 语言设计与实现》](./src/go-internal)
124+
125+
<img src="./images/golang-internal-cover.webp" width="300"/>
126+
123127
## 网络
124128

125129
- [《Compute-Network-Top-Down-Approach》/《计算机网络-自定向下的方法-第六版》](./src/Compute-Network-Top-Down-Approach)

images/golang-internal-cover.webp

35.5 KB
Binary file not shown.

src/go-internal/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# go-book-code

src/go-internal/ch03/mapassign.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package mapassign
2+
3+
func assign() map[int]string {
4+
m := map[int]string{}
5+
m[88] = "88"
6+
return m
7+
}

src/go-internal/ch03/new_slice.go

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package newslice
2+
3+
func newSlice() []int {
4+
s := []int{1, 2, 3}
5+
return s
6+
}

src/go-internal/ch03/op_slice_make.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package opslicemake
2+
3+
func newSlice() []int {
4+
arr := [3]int{1, 2, 3}
5+
slice := arr[0:1]
6+
return slice
7+
}

0 commit comments

Comments
 (0)