跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

go标签存档订阅

golang 环境变量

wget https://golang.google.cn/dl/go1.17.linux-amd6… 继续阅读 golang 环境变量

  • 发表于: 2021-09-03 2021-09-03
  • 作者: dn
  • 分类: SRE
  • 标签: aliyun, bash, go, golang, https, Linux, tar
  • 发表评论: golang 环境变量

pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1

报错: D:\Program Files\Go\pkg\tool\windows_amd64\lin… 继续阅读 pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1

  • 发表于: 2021-08-31 2021-08-31
  • 作者: dn
  • 分类: SRE
  • 标签: gcc, go, https, windows
  • 发表评论: pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1

link: running gcc failed: exit status 1

报错: /usr/local/go/pkg/tool/linux_amd64/link: runni… 继续阅读 link: running gcc failed: exit status 1

  • 发表于: 2021-08-31 2021-08-31
  • 作者: dn
  • 分类: SRE
  • 标签: bash, gcc, glibc, go, https, Linux, yum
  • 发表评论: link: running gcc failed: exit status 1

go mod配置代理

设置代理 # 配置 GOPROXY 环境变量 export GOPROXY=https://gopr… 继续阅读 go mod配置代理

  • 发表于: 2021-08-31 2021-08-31
  • 作者: dn
  • 分类: SRE
  • 标签: bash, go, https
  • 发表评论: go mod配置代理

cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

报错: cc1.exe: sorry, unimplemented: 64-bit mode not… 继续阅读 cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

  • 发表于: 2021-08-31 2021-08-31
  • 作者: dn
  • 分类: SRE
  • 标签: go, https, mingw
  • 发表评论: cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

golang 使用七牛kodo对象存储

import ( “context” “github.com/qiniu/go-sdk/v7/aut… 继续阅读 golang 使用七牛kodo对象存储

  • 发表于: 2021-08-31 2021-08-31
  • 作者: dn
  • 分类: SRE
  • 标签: go, golang, https, Mac
  • 发表评论: golang 使用七牛kodo对象存储

golang 使用redis

package main import ( “fmt” “github.com/go-redis/r… 继续阅读 golang 使用redis

  • 发表于: 2021-08-30 2021-08-30
  • 作者: dn
  • 分类: SRE
  • 标签: go, golang, redis
  • 发表评论: golang 使用redis

gin 自定义路由路径

//自定义post_name路由 engine.GET(“:path”, tmpl.PageDoc)

  • 发表于: 2021-08-30 2021-08-30
  • 作者: dn
  • 分类: SRE
  • 标签: gin, go, https, post
  • 发表评论: gin 自定义路由路径

http: wrote more than the declared Content-Length gin

//自定义logo会造成gin 500-200警告 //engine.Use(favicon.New… 继续阅读 http: wrote more than the declared Content-Length gin

  • 发表于: 2021-08-30 2021-08-30
  • 作者: dn
  • 分类: SRE
  • 标签: gin, go, http, https
  • 发表评论: http: wrote more than the declared Content-Length gin

golang switch case 条件判断

func GenRandomString(c *gin.Context) { length := c… 继续阅读 golang switch case 条件判断

  • 发表于: 2021-08-30 2021-08-30
  • 作者: dn
  • 分类: SRE
  • 标签: gin, go, golang, http, https
  • 发表评论: golang switch case 条件判断

gin获取query参数并设置默认值

msg_type := c.DefaultQuery(“msg_type”,”text”)

  • 发表于: 2021-08-30 2021-08-30
  • 作者: dn
  • 分类: SRE
  • 标签: gin, go, https
  • 发表评论: gin获取query参数并设置默认值

uber go语言规范

https://github.com/xxjwxc/uber_go_guide_cn

  • 发表于: 2021-08-29 2021-08-29
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, go, https
  • 发表评论: uber go语言规范

golang redis连接池

package main import( “fmt” “github.com/garyburd/re… 继续阅读 golang redis连接池

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: go, golang, redis
  • 发表评论: golang redis连接池

go mod 基本操作

更新到最新版本 go get github.com/test/test 更新到版本 go get g… 继续阅读 go mod 基本操作

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: go
  • 发表评论: go mod 基本操作

gorm 模糊查询

puzzle := “%” + keyword + “%” DB.Select(“post.*”).… 继续阅读 gorm 模糊查询

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: go, gorm, https, post
  • 发表评论: gorm 模糊查询

golang UrlEncode/UrlDecode网址转码

package main import( “fmt” “net/url” ) func main()… 继续阅读 golang UrlEncode/UrlDecode网址转码

  • 发表于: 2021-08-24 2021-08-24
  • 作者: sjx
  • 分类: SRE
  • 标签: go, golang, html, https, oss
  • 发表评论: golang UrlEncode/UrlDecode网址转码

GOLANG GO1.17 INSTALL

#https://blog.golang.org/go1.17 mv /usr/local/go /… 继续阅读 GOLANG GO1.17 INSTALL

  • 发表于: 2021-08-18 2021-08-18
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, go, golang, https, Linux, tar
  • 发表评论: GOLANG GO1.17 INSTALL

GOLANG GO1.16.6 INSTALL

mv /usr/local/go /usr/local/go_bak wget -c https:/… 继续阅读 GOLANG GO1.16.6 INSTALL

  • 发表于: 2021-08-08 2021-08-08
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, go, golang, https, Linux, tar
  • 发表评论: GOLANG GO1.16.6 INSTALL

goland The ‘main’ file has the non-main package or does not contain the ‘main’ function

package main …

  • 发表于: 2021-07-29 2021-07-29
  • 作者: sjx
  • 分类: SRE
  • 标签: go, goland, https
  • 发表评论: goland The ‘main’ file has the non-main package or does not contain the ‘main’ function

golang上传文件到aws s3

go get: go get github.com/globalsign/mgo/bson go g… 继续阅读 golang上传文件到aws s3

  • 发表于: 2021-07-29 2022-10-04
  • 作者: sjx
  • 分类: SRE
  • 标签: aws, go, golang, http, s3
  • 发表评论: golang上传文件到aws s3

分页

上一页 页码: 1 页码: 2 页码: 3 页码: 4 页码: 5 页码: 6 页码: 7 下一页

搜索

搜索:

近期评论

  • 周周 发表在《Kubernetes部署NextCloud网盘》
  • mysql m-s via gtid – SRE笔记 发表在《MySQL SET GTID_NEXT》
  • kangder 发表在《Kubernetes部署NextCloud网盘》
  • xs 发表在《Kubernetes部署NextCloud网盘》
  • test 发表在《gin不转义html标签》

标签

aws (15) bash (1123) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (154) Grafana (13) hpc (15) http (299) https (1999) ingress (14) iptables (20) java (75) JVM (20) kubernetes (309) Linux (546) lotus (30) mongoDB (41) MySQL (184) nginx (112) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tcp (69) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2024 年 12 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 8 月
  • 2024 年 7 月
  • 2024 年 6 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 9 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 4 月
  • 2017 年 3 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 12 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 11 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 2 月