赞
踩
GO 1.18 出泛型的使用了,看了下 github.com/samber/lo 这个库也是比较推荐的。
在 https://pkg.go.dev/github.com/samber/lo 上查看英文文档的时候 读得懂但是不知道具体是怎么个用法
我就想的是 我把方法走一遍 然后有了一个初步的印象 然后挑选出常用的方法 生成印象可以用到以后的项目开发中
地址:https://gitee.com/hengy1/samber_example
- ├── README.md
- ├── go.mod
- ├── go.sum
- ├── main.go
- └── samber
- ├── a_start.go
- ├── b_start.go
- ├── c_start.go
- ├── d_start.go
- ├── e_start.go
- ├── f_start.go
- ├── g_start.go
- ├── i_start.go
- ├── k_start.go
- ├── l_start.go
- ├── m_start.go
- ├── n_start.go
- ├── o_start.go
- ├── p_start.go
- ├── r_start.go
- ├── s_start.go
- ├── t_start.go
- ├── u_start.go
- ├── v_start.go
- └── w_start.go

有难度吗? 可以说不太有吧
但是花出去的时间以及能够有收获就是收获 ROI值我觉得可
以及有点写Python的感觉了 HAHAH
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。