摘要: tar包: 从tar包导入:docker load < xxxx.tar docker run -d -p 8080:80 --name [名字] -v `pwd`:/usr/share/nginx/html nginx:1.13 -d 参数表示后台运行 --name自己指定容器名字 -v表示映射, 阅读全文
posted @ 2020-10-13 16:12 人见人爱的Zain 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 安装依赖: go get github.com/akavel/rsrc 在对应程序的源码路径下创建manifest文件,图标也要放进去(xxx.ico), 命名:main.exe.manifest : 生成syso文件: rsrc -manifest main.exe.manifest -ico rc.ico -o main.sys... 阅读全文
posted @ 2020-10-13 16:04 人见人爱的Zain 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 匿名函数没有函数名 一个简单的匿名函数 packagemain import"fmt" funcmain(){ SayHello:=func(){ fmt.Println("Helloworld!") } SayHello() ... 阅读全文
posted @ 2020-10-13 16:00 人见人爱的Zain 阅读(84) 评论(0) 推荐(0) 编辑
摘要: http://docscn.studygolang.com/pkg/strings/ Golang官方对strings包的介绍,strings包都是关于字符串的操作 常用的函数: 判断s1中是否包含字符串"abc",返回true或者false strings.Contains(s1,"abc") 判断s1中是否包含字符串"abc"中任意一个字符,返回true或者f... 阅读全文
posted @ 2020-10-13 15:58 人见人爱的Zain 阅读(129) 评论(0) 推荐(0) 编辑
摘要: GO语言环境配置: 安装GOlang,添加到环境变量path 默认会创建环境变量GOPATH,其中存放代码和编译后的工程文件等,用户可以根据个人需要,在别的路径下创建gopath,并添加到环境变量中。 其GOPATH中目录结构如下:bin中存放编译后的可执行文件,src中存放个人的代码,pkg中存放 阅读全文
posted @ 2020-10-13 15:55 人见人爱的Zain 阅读(128) 评论(0) 推荐(0) 编辑