一些 HTTP/2 和 golang 的小知识

栏目: Go · 发布时间: 8年前

内容简介:一些 HTTP/2 和 golang 的小知识

最近迁移项目,顺便一些东西也都相应升级一下。中间碰到了一些问题,记录一下。

Golang

golang 获取当前路径

_, filename, _, _ := runtime.Caller(1)
p := path.Join(path.Dir(filename), "../config.yml")

以上所述就是小编给大家介绍的《一些 HTTP/2 和 golang 的小知识》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Pro Git (Second Edition)

Pro Git (Second Edition)

Scott Chacon、Ben Straub / Apress / 2014-11-9 / USD 59.99

Scott Chacon is a cofounder and the CIO of GitHub and is also the maintainer of the Git homepage ( git-scm.com ) . Scott has presented at dozens of conferences around the world on Git, GitHub and the ......一起来看看 《Pro Git (Second Edition)》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器