geo s2 geohash

Posted by 夏泽民

https://github.com/golang/geo 使用golang / geo / s2查找给定区域中是否存在latlng

rect := s2.RectFromLatLng(s2.LatLng{0.0, 0.0})
rect = rect.AddPoint(s2.LatLng{2.0, 2.0})
isThere := rect.ContainsLatLng(s2.LatLng{1.0, 1.0})


底纹推荐优化

Posted by 夏泽民

热搜/底纹引导搜索流量



字符串拼接性能

Posted by 夏泽民

golang中字符串拼接方法 += fmt.sprintf append buffer.WriteString copy 效率:copy > append > buf.WriteString > += > fmt.Sprintf 所以请慎用fmt.Sprinf 和 +=



selector

Posted by 夏泽民

当需要从集群外部访问k8s里的服务的时候,方式有四种:ClusterIP(默认)、NodePort、LoadBalancer、ExternalName 。



httputil ReverseProxy

Posted by 夏泽民

Reverse Proxy用途:



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required