打赏
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 54 下一页
摘要: golang 实现反向代理 httputil中的实现 package main import( "log" "net/url" "net/http" "net/http/httputil" ) func main() { remote, err := url.Parse("http://google 阅读全文
posted @ 2020-12-24 18:40 苍山落暮 阅读(697) 评论(0) 推荐(0)
摘要: Swagger接口文档 1.安装 swag $ go get -u github.com/swaggo/swag/cmd/swag 2.验证是否安装成功 $ swag -v 3.编写API注释 以官网文档为范例 // @Summary Add a new pet to the store // @D 阅读全文
posted @ 2020-12-16 10:40 苍山落暮 阅读(1469) 评论(0) 推荐(0)
摘要: jitsi安装 https://blog.springfavor.cn/2018/10/22/Jitsi%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2/ https://ld246.com/article/1562722762205 ubuntu部署jitsi https: 阅读全文
posted @ 2020-12-15 20:28 苍山落暮 阅读(510) 评论(0) 推荐(0)
摘要: go test测试 压力测试用来检测函数(方法)的性能,和编写单元功能测试的方法类似。 压力测试用例必须遵循如下格式,其中XXX可以是任意字母数字的组合,但是首字母不能是小写字母 func BenchmarkXXX(b *testing.B) { ... } go test不会默认执行压力测试的函数 阅读全文
posted @ 2020-12-15 19:58 苍山落暮 阅读(156) 评论(0) 推荐(0)
摘要: Draw.io 在Ubuntu/Debian/Fedora系统中安装draw.io Desktop的方法 请在drawio-desktop下载地址中下载相应的软件包。 1、在Ubuntu/Debian中安装draw.io Desktop 对于Debian和Ubuntu用户,请下载draw.io的.d 阅读全文
posted @ 2020-12-10 09:06 苍山落暮 阅读(3090) 评论(0) 推荐(0)
摘要: 1.限制接口访问频率 package main import ( "github.com/labstack/echo" "github.com/labstack/echo/middleware" "golang.org/x/time/rate" ) type ( RateLimitConfig st 阅读全文
posted @ 2020-12-09 14:12 苍山落暮 阅读(394) 评论(0) 推荐(0)
摘要: git 自动补全 (1.)下载git-completion.bash文件到/root家目录 vim ~/.git-completion.bash 内容见: https://github.com/git/git/blob/master/contrib/completion/git-completion 阅读全文
posted @ 2020-12-02 13:34 苍山落暮 阅读(200) 评论(0) 推荐(0)
摘要: linux 便签安装 indicator stickynotes这是一个ubuntu上的小便签,可以用来在桌面上作为备忘录与学习日志使用 安装方法 sudo add-apt-repository ppa:umang/indicator-stickynotes sudo apt-get update 阅读全文
posted @ 2020-11-27 13:37 苍山落暮 阅读(790) 评论(0) 推荐(0)
摘要: chfs文件共享 wget http://iscute.cn/tar/chfs/2.0/chfs-linux-amd64-2.0.zip unzip chfs-linux-amd64-2.0.zip # unzip 解压 sudo chmod u+rxw chfs # 赋予权利 apt instal 阅读全文
posted @ 2020-11-27 13:33 苍山落暮 阅读(507) 评论(0) 推荐(0)
摘要: 1.使用git commit 模板 操作步骤: 1.)设置模板路径,其中path就是commit模板路径 git config --global commit.template path 2.)设置模板使用什么软件打开 git config --global core.editor [编辑器名字] 阅读全文
posted @ 2020-11-24 10:23 苍山落暮 阅读(13097) 评论(0) 推荐(2)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 54 下一页