上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页
摘要: Vargant centOS7安装 Install https://www.vagrantup.com/ 文档 https://learn.hashicorp.com/collections/vagrant/getting-started Initialize 默认从https://app.vagr 阅读全文
posted @ 2020-08-19 12:58 CyberPelican 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 安装Nginx 一. 从nginx官网下载tar包 二. 1). 然后下载pcre文件依赖 wget http://downloads.sourceforge.net/project/pcre/pcre/8.37/pcre-8.37.tar.gz 2). 解压pcere 3).在pcere目录下 . 阅读全文
posted @ 2020-08-19 10:24 CyberPelican 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.cnblogs.com/reasonzzy/p/11127296.html Docker 三大组件 Images(镜像): Docker 镜像(Image),就相当于是一个 root 文件系统。比如官方镜像 ubuntu:16.04 就包含了完整的一套 Ubuntu1 阅读全文
posted @ 2020-08-19 10:17 CyberPelican 阅读(224) 评论(0) 推荐(0) 编辑
摘要: GOPATH 从 Go 1.8 版本开始,Go 开发包在安装完成后,将 GOPATH 赋予了一个默认的目录,参见下表 image.png 在Jetbrains 公司的 GoLand 集成开发环境(IDE)中GOPATH分两种: 1、Global GOPATH 2、Project GOPATH Glo 阅读全文
posted @ 2020-08-18 22:02 CyberPelican 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Golang http 通用方法 func HandleError(err error, reason string) { if err != nil { println(err, reason) } } func getContentByUrl(url string) string{ resp, 阅读全文
posted @ 2020-08-18 18:27 CyberPelican 阅读(118) 评论(0) 推荐(0) 编辑
摘要: /^正则表达式$/ 参考: https://www.runoob.com/regexp/regexp-syntax.html https://studygolang.com/pkgdoc golang regex https://regexr.com/ 正则在线检测 非打印字符 字符 描述 \n 换 阅读全文
posted @ 2020-08-18 18:18 CyberPelican 阅读(4807) 评论(0) 推荐(0) 编辑
摘要: 错误情况: go: missing Git command. See https://golang.org/s/gogetcmd package github.com/astaxie/beego: exec: “git”: executable file not found in %PATH% 解决 阅读全文
posted @ 2020-08-16 15:05 CyberPelican 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: Golang 反射 基本介绍 注意通过指针变量获取的变量是地址 //指针变量的kind fmt.Printf("%v\n", reflect.TypeOf(&student).Kind()) //ptr //指针变量的 type fmt.Printf("%T\n", &student) //*mai 阅读全文
posted @ 2020-08-15 23:49 CyberPelican 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Golang 常量 参考: https://www.cnblogs.com/chenbaoding/p/12197244.html https://www.jianshu.com/p/08d6a4216e96 定义 const identifier type 不能将一个变量赋值给常量 Go中没有常量 阅读全文
posted @ 2020-08-15 17:14 CyberPelican 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 深入理解CAS算法原理 转载: https://www.jianshu.com/p/21be831e851e 1、什么是CAS? CAS:Compare and Swap,即比较再交换。 jdk5增加了并发包java.util.concurrent.*,其下面的类使用CAS算法实现了区别于synch 阅读全文
posted @ 2020-08-15 12:06 CyberPelican 阅读(312) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页