Skip to content

Commit 57fe572

Browse files
committed
docs: 完善文档
1 parent 1814fc8 commit 57fe572

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Go Pointer
22

3+
# 安装
4+
5+
```text
6+
go get -u github.com/CC11001100/go-pointer
7+
```
8+
9+
# 解决了什么问题
10+
311
在golang中基本类型因为没有包装类型,所以很多库都倾向于采用基本类型变量的指针来区分是没有传递还是传递了零值。
412

513
一个具体的例子,当不使用指针的时候,在执行任务的时候有个配置项:

0 commit comments

Comments
 (0)