上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: nginx配置文件 user nginx www; # 工作进程数 - 双核4线程可以设定为4 worker_processes 16; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/erro 阅读全文
posted @ 2020-09-16 16:53 许伟强 阅读(362) 评论(0) 推荐(0)
摘要: 1 临时修复一个问题 切换分支到master git checkout master 基于master分支创建分支 git branch fix_20201027 开发测试完成以后 git add . && git commit -m 'fix 20201027 error' 开发测试完毕后切换到m 阅读全文
posted @ 2020-08-17 15:05 许伟强 阅读(135) 评论(0) 推荐(0)
摘要: 1 批量验证 2 循环入库 3 导入提示 package main import ( "fmt" "sync" "time" ) var wg sync.WaitGroup // ExcuteResult 执行结果集 type ExcuteResult struct { data map[strin 阅读全文
posted @ 2020-04-01 14:12 许伟强 阅读(246) 评论(0) 推荐(0)
摘要: 1. 截取普通字符串 - 直接当成数组切片 str := "XHelloWorldX" content := str[1 : len(str)-1] fmt.Println(content) 或者 - 转换为数组(有声明内部变量)切片 s := "abcdefg" s = string([]byte 阅读全文
posted @ 2020-03-24 14:37 许伟强 阅读(17126) 评论(0) 推荐(0)
摘要: fmt包可以 输出到面板上: fmt.Printf 不输出到面板仅仅返回字符串 fmt.Sprintf 返回的是字符串 阅读全文
posted @ 2020-02-19 18:22 许伟强 阅读(696) 评论(0) 推荐(0)
摘要: golang获取日期,也可以用于获取月份的天数 package main import ( "fmt" "strconv" "time" ) func main() { y := "2020" m := "6" result := GetMonthStartAndEnd(y,m) fmt.Print 阅读全文
posted @ 2020-02-15 16:45 许伟强 阅读(4177) 评论(0) 推荐(0)
摘要: 使用goframe框架 - 可以查找到最最全面完整的类型转换 https://github.com/gogf/gf/tree/master/util/gconv 手册地址 https://goframe.org/util/gconv/index 阅读全文
posted @ 2020-02-13 15:05 许伟强 阅读(1152) 评论(0) 推荐(0)
摘要: search对象转为超链接 var search = { staff_name:{"value":"jack","operator":"like","type":"both"}, enable_flag:{"value":"1","operator":"=","type":""}, month:{" 阅读全文
posted @ 2020-02-12 12:36 许伟强 阅读(606) 评论(0) 推荐(0)
摘要: golang导出excel使用包 https://github.com/360EntSecGroup-Skylar/excelize 实例代码如下: package main import ( "fmt" "strconv" "github.com/360EntSecGroup-Skylar/exc 阅读全文
posted @ 2020-02-11 17:28 许伟强 阅读(3957) 评论(0) 推荐(0)
摘要: 错误提示: cannot find package "golang.org/x/text/encoding" cannot find package "golang.org/x/net/html/charset" 这些包都是golang的官方包 https://github.com/golang 比 阅读全文
posted @ 2020-02-11 16:21 许伟强 阅读(1157) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页