golang一个文件里定义多个模板

Posted by 夏泽民

Go template包下面有两个函数可以创建模板实例 func New(name string) Template func ParseFiles(filenames …string) (Template, error)



k8s 网络连接 3 种工具

Posted by 夏泽民

我们有 3 个 service,service-front 通过入口暴露给外网。service-front 的后端服务是 service-middle,service-middle 的后端是 service-back。通信是通过 K8s service 完成的。



proto marshal to json enumber as string

Posted by 夏泽民

默认情况下,将生成的pb struct marshal 后生成的json中,枚举值是整型。如何将枚举值编程string 呢用jsonpb,注意枚举值0 会被omitempty掉



innblock 查看mysql的行记录

Posted by 夏泽民

https://blog.csdn.net/n88Lpo/article/details/102812567



gomock

Posted by 夏泽民

1.gomock https://godoc.org/github.com/golang/mock/gomock



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