31 2021-12 Linux shell 定时备份删除脚本 1 ######################################################################### 2 # Discription: odp backup 3 # Created Time: 2021-12-12 4 ###################... 阅读全文 2021年12月31日 16:51:28 周五 2021-12-31 周五 35 0 0
29 2021-12 PHP php 数组 PHP获取二维数组中某一列的值集合: $arr2 = array_column($arr, 'name'); 1 $arr2 = array_column($arr, 'name'); 第... 阅读全文 2021年12月29日 19:58:42 周三 2021-12-29 周三 56 0 0
29 2021-12 GO go 压缩zip package ziptest import ( "archive/zip" "io" "os" "strings" ) //压缩文件 //files 文件数组,可以是不同dir下的文件或者文件夹 //dest 压缩... 阅读全文 2021年12月29日 11:30:30 周三 2021-12-29 周三 40 0 0
27 2021-12 GO Go语言中 Print,Println 和 Printf 的区别 Print 和 Println 这两个打印方式类似,只在格式上有区别 1. Println 打印的每一项之间都会有空行,Print 没有,例如: fmt.Println("go","python","php","javascript") // go p... 阅读全文 2021年12月27日 17:30:26 周一 2021-12-27 周一 36 0 0
27 2021-12 GO go 排序和交差并 基本类型排序(int、float64 和 string) 对于 int 、 float64 和 string 数组或是分片的排序, go 分别提供了 sort.Ints() 、 sort.Float64s() 和 sort.Strings() 函数, 默认都是从小到大排序。 ... 阅读全文 2021年12月27日 11:21:15 周一 2021-12-27 周一 33 0 0
26 2021-12 Other mac brew 换源 Homebrew 是一款自由及开放源代码的软件包管理系统,用以简化 macOS 和 linux 系统上的软件安装过程。它拥有安装、卸载、更新、查看、搜索等很多实用的功能,通过简单的一条指令,就可以实现包管理,... 阅读全文 2021年12月26日 13:14:17 周日 2021-12-26 周日 37 0 0
22 2021-12 GO go 下载文件 使用 Go 语言下载一个文件,大家一般会怎么做呢,比如,我们要下载 https://www.twle.cn/static/i/img1.jpg 这张图片。 前面的部分,想必很多人都一样,使用 net/http 包下的 http.Get() 方法创建一个... 阅读全文 2021年12月22日 10:59:47 周三 2021-12-22 周三 30 0 0
22 2021-12 GO go 生成pdf //创建目录 tmpDir := strconv.FormatInt(time.Now().Unix(), 10) tmpPath := env.DataDir() + "/help/" + tmpDir + "/" _, err := os.Stat(tmpPath) if err != nil { ... 阅读全文 2021年12月22日 10:55:08 周三 2021-12-22 周三 32 0 0
22 2021-12 GO golang-mysql时间转化 定义一个type,在结构体直接使用TimeFormat类型,数据库datetime查询结果就可以直接封装成年月日 type TimeFormat time.Time func (t TimeFormat) MarshalJSON() ([]byte, e... 阅读全文 2021年12月22日 10:44:56 周三 2021-12-22 周三 33 0 0