failed get go

kafka-consumer.go

package consumer import ( "fmt" "sync" "github.com/Shopify/sarama" ) type CRead func() string func Run() { var wg sync.WaitGroup consumer, err := sara ......
kafka-consumer consumer kafka go

kafka-producer.go

package producer import ( "fmt" "github.com/Shopify/sarama" ) type CRead func() string func Run(cRead CRead) { config := sarama.NewConfig() config.Pro ......
kafka-producer producer kafka go

kafka-main.go

package main import ( "bufio" "kafka/consumer" "kafka/producer" "os" "strings" ) var inputReader *bufio.Reader func init() { inputReader = bufio.NewRe ......
kafka-main kafka main go

[GIT]解决:failed to push some refs to ...(经验复盘)

# 1 问题描述 ``` shell johnnyzen@XXDSSS MINGW64 /e/source_code/BigData/bdp_common_data_service (develop) $ git push To gitlab-bigdata.johnnyzen.cn:platfor ......
经验 failed to push some

Navicat 连接Oracle ORA-28547: connection to server failed, probable Oracle Net admin error

Navicat 连接 Oracle 报 ORA-03135: connection lost contact ORA-28547: connection to server failed, probable Oracle Net admin error oci.dll 版本太低,需要重新下载并指定 ......
Oracle connection probable Navicat server

【Go】基础

## 关于项目新建 ### 使用path新建 * 新建项目位置必须在go目录下 > 先查找gopath/src这个目录之下,在查找goroot/src这个目录之下,如果都没有则报错 ![image](https://img2023.cnblogs.com/blog/1282163/202307/12 ......
基础

Go特殊的语言特性

> 摘要:本文由葡萄城技术团队于博客园原创并首发。转载请注明出处:[葡萄城官网](https://www.grapecity.com.cn/),葡萄城为开发者提供专业的开发工具、解决方案和服务,赋能开发者。 # 前言 本文主要通过值传递和指针、字符串、数组、切片、集合、面向对象(封装、继承、抽象)和 ......
特性 语言

Go并发编程实战 第一章 初识Go语言

第一章基本上就是讲解Go的历史、如何安装GO、Go的基本概念和一些常用的命令。由于学习Go也有一段时间了,可以看出书中有一些概念其实不完全正确的,特别是gopath部分。 大概知识点如下: 1. 工作区的概念:早期Go确实建议把所有的工程代码放在`GOPATH`环境变量下,这个目录是你自己设置的,可 ......
实战 语言

Go 语言的 nil 能比较自己吗

## nil 是什么? 可以看看官方的描述,在 buildin/buildin.go 里: ```go // nil is a predeclared identifier representing the zero value for a // pointer, channel, func, in ......
语言 nil Go

Go并发编程学习

> 想起来还不是很熟悉Go的并发编程,趁现在有空学一下。找了一些资料,感觉也不是很好,最终选择看这本书(看到一些大佬推荐的) > 本章作为这个书的目录部分索引,会一直更新到这本书看完,算是立个flag吧。 > 2023-7-12: 更新第一章初识Go语言 # Go并发编程实战 ![](https:/ ......

GoLand没有go mod模式选项的问题

代理需要命令行进行全局设置 使用阿里云代理: go env -w GO111MODULE=on go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/ ......
模式 GoLand 问题 mod

docker 报Failed to create thread: Operation not permitted (1) 解决方法

docker启动容器时报:Failed to create thread: Operation not permitted (1) 原因:docker内的用户权限受限 解决办法1: 启动docker时加上参数 --privileged=true privileged=true:获得真正的root权限 ......
Operation permitted 方法 docker Failed

使用you-get下载视频网站的各种视频

第一步安装python,因为you-get是用python写的,需要python的环境支持。 1.1 到https://www.python.org/downloads/下载,直接点那个Download Python x.x.x下载最新版即可,像这样: 作者:达叔傻乐 链接:https://www. ......
视频 you-get 网站 you get

Go--统计数组中重复的元素及重复次数

代码: package main import ( "fmt" ) func main() { //创建有重复数值的数组 a1 := []int{1, 2, 3, 1, 4, 5, 2} a2 := []string{"t1", "t2", "t1", "t3", "t5", "t3"} //创建m ......
数组 元素 次数 Go

mybatis-plus Error attempting to get column 'xxx' from result set.

报错信息: mybatis-plus Error attempting to get column 'xxx' from result set. 解决: 1、获取数据的实体类中新建了一个有参的构造方法,却没有无参构造方法,使用MyBatis-Plus内置方法进行查询时会报错。 解决办法: 新建一个无 ......

解决docker报错Job for docker.service failed because start of the service was attempted too often

转载自:https://blog.csdn.net/Along_168163/article/details/124118833 docker安装之后重新安装报错如下: Job for docker.service failed because start of the service was at ......
service docker attempted because failed

fatal: 无法访问 'https://github.com/nmww/lingyun.git/':Failed to connect to github.com port 443 after 13 ms: Connection refused

fatal: 无法访问 'https://github.com/nmww/lingyun.git/':Failed to connect to github.com port 443 after 13 ms: Connection refused git config --global https. ......
github Connection com connect lingyun

前端Get请求传递时间参数报错

> Get请求时,传递的参数都属于字符串类型,若是这个时候后端是用Date类型接收,会出现数据类型不匹配的问题(@DateTimeFormat(pattern = "yyyy-MM-dd")注解可自动将前端传来的字符串转换成时间类型,不过前端传来的长度要大于pattern设置的格式~) ``` @D ......
前端 参数 时间 Get

Go语言中的性能测试

# 单元测试 测试单元的结果是否符合预期 ```Go //go_test.go import ( "fmt" "testing" ) func Add() int { fmt.Println("AAAAAAAAAAAAAA") return 5 } func Sub() int { fmt.Prin ......
性能 语言

go编写zabbix企业微信媒介脚本

```go package main import ( "bytes" "fmt" "io" "net/http" "os" "time" "github.com/bytedance/sonic" ) var ( subject, message, webHook, is_all, user_pho ......
媒介 脚本 zabbix 企业

go项目的打包部署

1.go项目在window下编译简易打包1).在windows下直接编译生成main.exe文件在项目main.go同级目录下执行以下命令go build main.go 2).将当前目录下的main.go打包成gotest.exe文件(在windows下可以直接执行)在项目main.go同级目录下 ......
项目

nvm安装node报错Get "https://nodejs.org/dist/latest/SHASUMS256.txt": dial tcp 104.20.23.46:443: i/o timeout

windows上通过nvm管理node版本,在本地安装了nvm后,通过nvm安装node,报错了,信息: Could not retrieve https://nodejs.org/dist/latest/SHASUMS256.txt. Get https://nodejs.org/dist/lat ......
quot SHASUMS timeout latest nodejs

C#调用外部接口(POST、GET)

在C#中调用StringBoot接口,POST请求,案例代码: public string HttpPost() { //把用户传过来的数据转成“UTF-8”的字节流Encoding encoding = Encoding.UTF8;//创建一个HTTP请求HttpWebRequest reques ......
接口 POST GET

apt-get

apt-get Debian Linux发行版中的APT软件包管理工具 ## 补充说明 **apt-get命令** 是Debian Linux发行版中的APT软件包管理工具。所有基于Debian的发行都使用这个包管理系统。deb包可以把一个应用的文件包在一起,大体就如同Windows上的安装文件。 ......
apt-get apt get

go语言-不同类型转换为JSON格式数据

1.将结构体转换为JSON: package main import ( "encoding/json" "fmt" ) type Person struct { Name string Age int Email string } func main() { person := Person{Na ......
语言 类型 格式 数据 JSON

Android studio 安装应用出现 The application could not be installed: INSTALL_FAILED_USER_RESTRICTED 错误

### 错误详情 ``` Installation did not succeed. The application could not be installed: INSTALL_FAILED_USER_RESTRICTED List of apks: [0] '/Users/topjoy/git ......

go generate命令简介

最近在研究[kratos](https://github.com/go-kratos/kratos)的使用,发现在`kratos run`之前会先运行`go generate ./...`命令。 这个命令之前没怎么用过,所以决定学习下该命令的用法。 `go generate`是Go语言中的一个命令, ......
generate 命令 简介 go

go语言时间相关

在Go语言中,时间定义为Time结构体。 var t = time.Now() fmt.Printf("%T\n", t) // time.Time fmt.Printf("%v %+[1]v\n", t) // 2022-10-06 19:35:00.1963422 +0800 CST m=+0. ......
语言 时间

python3使用pip安装wordcloud报错error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

背景: 使用的是Anaconda集成环境,python版本是:3.10,安装wordcloud包,使用的命令是:pip install wordcloud,出现报错:error: Microsoft Visual C++ 14.0 or greater is required. Get it wit ......