Go http client使用代理
proxy := func(_ *http.Request) (*url.URL, error) {… 继续阅读 Go http client使用代理
proxy := func(_ *http.Request) (*url.URL, error) {… 继续阅读 Go http client使用代理
max = a if a>b else b
<video style=”max-width:100%;height:auto” id=”v… 继续阅读 video标签样式自适应
改为: “lunr-languages-cn”: “1.4.2”, config.searchExt… 继续阅读 lunr-languages 中文搜索
pip install PyMySQL
Python3以后删除了has_key()方法 if dict.has_key(key1): 改… 继续阅读 ‘dict’ object has no attribute ‘has_key’
import hashlib import base64 def md5(plaintext): &… 继续阅读 python md5和base64Encoder
github.com/fatih/color 是用于输出对应编码颜色的包。 github.com/s… 继续阅读 Go 编写 shell 脚本软件包
<dependency> <groupId>com.huobi.sdk<… 继续阅读 pom依赖本地jar包路径
package main import ( “fmt” “os/exec” ) func main(… 继续阅读 go调用shell脚本
SELECT * FROM `table` WHERE id >= (SELECT floor… 继续阅读 MySQL随机取一条记录
下载64位mingw: https://sourceforge.net/projects/mingw… 继续阅读 cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
将路由信息从入口拿走后报错信息: ./main.go:12:7: undefined: NewRou… 继续阅读 go build : undefined: NewRouter
string转成int: int, err := strconv.Atoi(string) stri… 继续阅读 golang string和int类型相互转换
文档: https://docs.min.io/cn/golang-client-quickstar… 继续阅读 minio golang-client
MySQL replace into 三种形式: replace into tbl_name(col… 继续阅读 MySQL存在则更新不存在就插入
echo $[2**32]
godotenv加载 package main import ( “fmt” “log” “os” … 继续阅读 godotenv加载环境变量
FROM golang:1.13.0-stretch AS builder ENV GO111MOD… 继续阅读 go项目简易Dockerfile
linux/mac # 设置你的 bash 环境变量 echo “export GOPROXY=ht… 继续阅读 配置GOPROXY环境变量