![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
catboygg-
这个作者很懒,什么都没留下…
展开
-
URL正则匹配
正则匹配一.修饰符二.元字符三.匹配规则一.修饰符标记位于正则表达式之外:修饰符含义及描述iignore-不区分大小写gglobal-全局匹配,查找所有的匹配项mmuli line-多行匹配二.元字符把要搜索的文本放在字符之前,例如o{1,3}。字符含义^匹配输入字符串开始的位置$匹配输入字符串结束的位置*匹配前面的子表达式零次或多次+匹配前面的子表达式一次或多次.匹配除换行符(\n、\r)之外的任何原创 2021-05-21 17:22:21 · 899 阅读 · 0 评论 -
ubuntu装etcd 亲测有效
命令号如下:下面的直接复制粘贴到终端就好了 curl -L https://github.com/coreos/etcd/releases/download/v3.3.0-rc.0/etcd-v3.3.0-rc.0-linux-amd64.tar.gz -o etcd-v3.3.0-rc.0-linux-amd64.tar.gz && sudo tar xzvf etcd-v3.3.0-rc.0-linux-amd64.tar.gz && cd etcd-v3.3.原创 2021-04-03 13:46:41 · 910 阅读 · 0 评论 -
ubuntu安装protoc全过程 亲测有效
命令行如下:git clone https://github.com/protocolbuffers/protobuf.gitgit clone https://github.com/protocolbuffers/protobuf.gitsudo apt-get install autoconf automake libtool curl make g++ unzipcd protobuf/git submodule update --init --recursivesudo ./autogen原创 2021-04-03 11:04:45 · 7938 阅读 · 6 评论 -
golang引用类型slice和map
这里写目录标题一两种引用类型的初始化及其日常操作二slice的底层数据结构以及扩容机制三map的底层数据结构以及扩容机制一两种引用类型的初始化及其日常操作大家可以阅读这个博主的讲解很清晰slice:https://www.liwenzhou.com/posts/Go/06_slice/map:https://www.liwenzhou.com/posts/Go/08_map/二slice的底层数据结构以及扩容机制 slice简单来说是一个动态数组,他的底层数据结构还是数组 他有三个部原创 2021-02-21 23:37:15 · 268 阅读 · 0 评论 -
Goland导入github包
goland终端如何导入github上的包例如:我们要导入gin包,最开始我直接输入go get -u github.com/gin-gonic/gin会出现以下的问题:# cd F:\goworkspace\src\github.com\gin-gonic\gin; git pull --ff-onlyfatal: not a git repository (or any of the parent directories): .gitpackage github.com/gin-gonic/g原创 2020-09-05 16:22:13 · 5394 阅读 · 1 评论