先来看一段代码
code: e : []int64{1, 2, 3}fmt.Println("cap of e before:", cap(e))e append(e, 4, 5, 6, 7)fmt.Println("cap of e after:", cap(e))output:cap of e before: 3
cap of e after: 8
为什么容量是8?
append了的4个元素&…
目录 1. Kafka 笔记 (Non-Root/Container)1.1. 启动1.2. bitnami/kafka1.2.1. Non-Root Containers 1. Kafka 笔记 (Non-Root/Container)
1.1. 启动
Kafka 需要与 ZooKeeper 一起启动:
Kafka with ZooKeeper
Run the following commands in order to start all services in…