Go泛型设计最新进展和一些问题的澄清 | Gopher Daily (2020.08.22) ʕ◔ϖ◔ʔ

每日一谚:Don't use fmt.Sprintf("%s:%d") to construct a host/port combination; use net.JoinHostPort() instead.

有意想学习容器或Kubernets的童鞋可以了解一下我的慕课网实战课:k8s实战 - https://coding.imooc.com/class/284.html

1.关于Go泛型设计最新进展和一些问题的澄清: 很大可能使用方括号“[]”,取消类型参数前面的type关键字,所有类型参数必须>提供constraint,引入"any"预声明标识符(interface{}的一个alias)等 - https://groups.google.com/g/golang-nuts/c/iAD0NBz3DYw/m/VcXSK55XAwAJ

type Vector[T any] []T               
func Print[T any](s []T) { … }
func Index[T comparable](s []T, e T) { … }

2.NAT穿越的工作原理 by tailscale - https://tailscale.com/blog/how-nat-traversal-works/3.Go接口隔离实战 - https://gianarb.it/blog/interface-segreation-in-action-with-go4.Go Mock测试技术详解 - https://dmv.myhatchpad.com/insight/mocking-techniques-for-go/5.fastai发布新版深入学习课程 - https://www.fast.ai/2020/08/21/fastai2-launch/6.使用go和redis构建一个无服务有状态API - https://dev.to/lambdastore/build-a-serverless-stateful-api-with-golang-and-redis-2m86

•gopherdaily归档:https://github.com/bigwhite/gopherdaily•编辑:Tony Bai (https://tonybai.com)•邮件订阅:https://gopher-daily.com/

往期推荐

Go新泛型设计方案详解

Go语言联合作者Rob Pike专访:Go确实已成为云基础架构的语言

Go coding in go way

Hello,WireGuard

Go语言之禅

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值