当前位置: 首页 > news >正文

go语言相关bug

第一个bug

itcast@itcast:/home/jian/share/src/go-test/homeweb-client$ go mod tidy
go: finding module for package github.com/micro/go-grpc
go: found github.com/micro/go-grpc in github.com/micro/go-grpc v1.0.1
go: homeweb-client/handler importsgithub.com/micro/go-grpc importsgithub.com/micro/go-micro importsgithub.com/micro/go-micro/cmd importsgithub.com/micro/go-micro/registry/consul importsgithub.com/hashicorp/consul/watch tested bygithub.com/hashicorp/consul/watch.test importsgithub.com/hashicorp/consul/agent importsgithub.com/hashicorp/go-discover importsgithub.com/hashicorp/go-discover/provider/azure importsgithub.com/Azure/go-autorest/autorest: ambiguous import: found package github.com/Azure/go-autorest/autorest in multiple modules:github.com/Azure/go-autorest v11.7.0+incompatible (/home/jian/share/pkg/mod/github.com/!azure/go-autorest@v11.7.0+incompatible/autorest)github.com/Azure/go-autorest/autorest v0.9.0 (/home/jian/share/pkg/mod/github.com/!azure/go-autorest/autorest@v0.9.0)
go: homeweb-client/handler importsgithub.com/micro/go-grpc importsgithub.com/micro/go-micro importsgithub.com/micro/go-micro/cmd importsgithub.com/micro/go-micro/registry/consul importsgithub.com/hashicorp/consul/watch tested bygithub.com/hashicorp/consul/watch.test importsgithub.com/hashicorp/consul/agent importsgithub.com/hashicorp/go-discover importsgithub.com/hashicorp/go-discover/provider/azure importsgithub.com/Azure/go-autorest/autorest/adal: ambiguous import: found package github.com/Azure/go-autorest/autorest/adal in multiple modules:github.com/Azure/go-autorest v11.7.0+incompatible (/home/jian/share/pkg/mod/github.com/!azure/go-autorest@v11.7.0+incompatible/autorest/adal)github.com/Azure/go-autorest/autorest/adal v0.5.0 (/home/jian/share/pkg/mod/github.com/!azure/go-autorest/autorest/adal@v0.5.0)
go: homeweb-client/handler importsgithub.com/micro/go-grpc importsgithub.com/micro/go-micro importsgithub.com/micro/go-micro/cmd importsgithub.com/micro/go-micro/registry/consul importsgithub.com/hashicorp/consul/watch tested bygithub.com/hashicorp/consul/watch.test importsgithub.com/hashicorp/consul/agent importsgithub.com/hashicorp/go-discover importsgithub.com/hashicorp/go-discover/provider/azure importsgithub.com/Azure/go-autorest/autorest/azure: ambiguous import: found package github.com/Azure/go-autorest/autorest/azure in multiple modules:github.com/Azure/go-autorest v11.7.0+incompatible (/home/jian/share/pkg/mod/github.com/!azure/go-autorest@v11.7.0+incompatible/autorest/azure)github.com/Azure/go-autorest/autorest v0.9.0 (/home/jian/share/pkg/mod/github.com/!azure/go-autorest/autorest@v0.9.0/azure)
go: homeweb-client/handler importsgithub.com/micro/go-grpc importsgithub.com/micro/go-micro importsgithub.com/micro/go-micro/cmd importsgithub.com/micro/go-micro/registry/consul importsgithub.com/hashicorp/consul/watch tested bygithub.com/hashicorp/consul/watch.test importsgithub.com/hashicorp/consul/agent importsgithub.com/hashicorp/go-discover importsgithub.com/hashicorp/go-discover/provider/azure importsgithub.com/Azure/azure-sdk-for-go/services/network/mgmt/2015-06-15/network importsgithub.com/Azure/go-autorest/autorest/to: ambiguous import: found package github.com/Azure/go-autorest/autorest/to in multiple modules:github.com/Azure/go-autorest v11.7.0+incompatible (/home/jian/share/pkg/mod/github.com/!azure/go-autorest@v11.7.0+incompatible/autorest/to)github.com/Azure/go-autorest/autorest/to v0.2.0 (/home/jian/share/pkg/mod/github.com/!azure/go-autorest/autorest/to@v0.2.0)
go: homeweb-client/handler importsgithub.com/micro/go-grpc importsgithub.com/micro/go-micro importsgithub.com/micro/go-micro/cmd importsgithub.com/micro/go-micro/registry/consul importsgithub.com/hashicorp/consul/watch tested bygithub.com/hashicorp/consul/watch.test importsgithub.com/hashicorp/consul/agent importsgithub.com/hashicorp/go-discover importsgithub.com/hashicorp/go-discover/provider/azure importsgithub.com/Azure/azure-sdk-for-go/services/network/mgmt/2015-06-15/network importsgithub.com/Azure/go-autorest/autorest/validation: ambiguous import: found package github.com/Azure/go-autorest/autorest/validation in multiple modules:github.com/Azure/go-autorest v11.7.0+incompatible (/home/jian/share/pkg/mod/github.com/!azure/go-autorest@v11.7.0+incompatible/autorest/validation)github.com/Azure/go-autorest/autorest/validation v0.1.0 (/home/jian/share/pkg/mod/github.com/!azure/go-autorest/autorest/validation@v0.1.0)
go: homeweb-client/handler importsgithub.com/micro/go-grpc importsgithub.com/micro/go-micro importsgithub.com/micro/go-micro/cmd importsgithub.com/micro/go-micro/registry/consul importsgithub.com/hashicorp/consul/watch tested bygithub.com/hashicorp/consul/watch.test importsgithub.com/hashicorp/consul/agent importsgithub.com/hashicorp/go-discover importsgithub.com/hashicorp/go-discover/provider/azure importsgithub.com/Azure/azure-sdk-for-go/services/network/mgmt/2015-06-15/network importsgithub.com/Azure/go-autorest/tracing: ambiguous import: found package github.com/Azure/go-autorest/tracing in multiple modules:github.com/Azure/go-autorest v11.7.0+incompatible (/home/jian/share/pkg/mod/github.com/!azure/go-autorest@v11.7.0+incompatible/tracing)github.com/Azure/go-autorest/tracing v0.5.0 (/home/jian/share/pkg/mod/github.com/!azure/go-autorest/tracing@v0.5.0)
itcast@itcast:/home/jian/share/src/go-test/homeweb-client$ ls

https://github.com/Azure/go-autorest 去这个官网去安装

go get github.com/Azure/go-autorest/autorest
go get github.com/Azure/go-autorest/autorest/azure
go get github.com/Azure/go-autorest/autorest/date
go get github.com/Azure/go-autorest/autorest/to
github.com/Shopify/sarama: github.com/Shopify/sarama@v1.42.1: parsing go.mod:
module declares its path as: github.com/IBM/saramabut was required as: github.com/Shopify/sarama

出现这种情况可能是版本的问题

replace github.com/golang/lint => golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3replace github.com/testcontainers/testcontainer-go => github.com/testcontainers/testcontainers-go v0.0.2replace github.com/envoyproxy/go-control-plane => github.com/envoyproxy/go-control-plane v0.8.1

相关文章:

go语言相关bug

第一个bug itcastitcast:/home/jian/share/src/go-test/homeweb-client$ go mod tidy go: finding module for package github.com/micro/go-grpc go: found github.com/micro/go-grpc in github.com/micro/go-grpc v1.0.1 go: homeweb-client/handler importsgithub.com/micr…...

Spring Cloud OpenFeign:基于Ribbon和Hystrix的声明式服务调用

💗wei_shuo的个人主页 💫wei_shuo的学习社区 🌐Hello World ! Spring Cloud OpenFeign:基于Ribbon和Hystrix的声明式服务调用 Spring Cloud OpenFeign是一个声明式的服务调用框架,基于Feign并整合了Ribbon和…...

租用服务器带宽类型应用

服务器带宽类型多样,以满足不同行业的需求。本文将介绍香港常见的服务器带宽类型及其应用领域。 1. 共享带宽 共享带宽是指多个用户共同使用同一台服务器的带宽资源。这种带宽类型适用于小型企业或个人网站,因为其成本较低。由于多个用户共享带宽资源&…...

SOLIDWORKS实用技巧之焊件轮廓应用

1.焊件轮廓库官方下载入口 焊件轮廓可以自制,也可以从软件中在线下载获取直接使用,如图1,联网状态按ctrl左键点击下载,解压后获得库文件。 图1 图2 2.库放置的位置和配置 从SOLIDWORKS2014版起,软件焊件轮廓库支持可…...

本地浏览器全局翻译 demo 以火狐firefox为例【免费-简单】

translateDemo 介绍使用说明简单到流泪 本地浏览器全局翻译 demo 以火狐firefox为例 1、安装插件 使用少量的 JavaScript 脚本,自由定义网页显示与运行方式。2、将上述脚本 追加到 插件中即可实现全局翻译;3、免费;参与贡献特技 translateDe…...

使用多线程处理List数据

最近遇到了一个业务场景&#xff0c;需要对List中的数据逐个发起http请求(List中的数据各自独立&#xff0c;对执行顺序无要求)&#xff0c;考虑到可以使用多线程加快处理速度。 封装了如下方法&#xff1a; /// <summary>/// 多线程处理数据-无返回值/// </summary&…...

Elasticsearch--Python使用、Django/Flask集成

一、Python使用 from elasticsearch import Elasticsearchobj Elasticsearch() # 创建索引&#xff08;Index&#xff09; result obj.indices.create(indexuser, body{"userid":1,username:lqz},ignore400) # print(result) # 删除索引 # result obj.indices.de…...

pyspark将数据多次插入表的时候报错

代码 报错信息 py4j.protocol.Py4JJavaError: An error occurred while calling o129.sql. : org.apache.spark.sql.catalyst.parser.ParseException: mismatched input INSERT expecting <EOF>(line 12, pos 0) 原因 插入语句结束后没有加&#xff1b;结尾 把两个&am…...

Qt绘制饼状图

必须在MainWindow.h头文件开头放 #include <QtCharts> //必须这么设置 创建chart&#xff1a; void MainWindow::iniPiewChart() { //饼图初始化QChart *chart new QChart();chart->setTitle(" Piechart演示");chart->setAnimationOptions(QChar…...

Vue3 setup函数

一、setup函数介绍 setup函数是Vue3中全新的一个配置项&#xff0c;值为一个函数&#xff0c;是所有 Composition API 中“表演的舞台”。 我们在Vue2中用到的所有数据、方法&#xff0c;都需要配置在setup中。 这是我们在Vue2中的写法&#xff1a; 这是我们在Vue3 setup中的…...

Django(三、数据的增删改查、Django生命周期流程图)

文章目录 一、 基于ORM进行的CURDuser_list&#xff1a;作为主页使用路由文件urls.py配置如下&#xff1a;add.html&#xff1a;用于新增用户的数据页add页面视图函数如下:edit.html&#xff1a;修改数据的页面那么来总结一下上序所操作所用到的内容。 导入已存在的表其方式有两…...

Linux 部署Sentinel控制台

Sentinel 是面向分布式、多语言异构化服务架构的流量治理组件&#xff0c;主要以流量为切入点&#xff0c;从流量路由、流量控制、流量整形、熔断降级、系统自适应过载保护、热点流量防护等多个维度来帮助开发者保障微服务的稳定性。 1.版本选择 SpringCloudAlibaba SpringClo…...

服务器如何下载百度网盘数据

百度网盘作为镜像 国外用户传数据到我们服务器比较慢,但是传输百度网盘速度还是可以的。 这样我们就可以将百度网盘作为一个文件中转站。 但Linux系统下使用百度网盘有些麻烦,虽然百度网盘也有Linux版本,但服务器没开启图形界面,使用的是命令行。这个时候就得感谢开发者Ho…...

POJ 3254 Corn Fields 状态压缩DP(铺砖问题)

一、题目大意 我们要在N * M的田地里种植玉米&#xff0c;有如下限制条件&#xff1a; 1、对已经种植了玉米的位置&#xff0c;它的四个相邻位置都无法继续种植玉米。 2、题目中有说一些块无论如何&#xff0c;都无法种植玉米。 求所有种植玉米的方案数&#xff08;不种植也…...

transformers安装避坑

1.4 下载rust编辑器 看到这里你肯定会疑惑了&#xff0c;我们不是要用python的吗&#xff1f; 这个我也不知道&#xff0c;你下了就对了&#xff0c;不然后面的transformers无法安装 因为是windows到官网选择推荐的下载方式https://www.rust-lang.org/tools/install。 执行文…...

牛客、赛码网OJ调试(全)

现在无论开发还是测试&#xff0c;面试的时候都需要考察代码能力。 从测试的职业发展来看&#xff0c;现在市场上对于纯功能测试的需求很少&#xff0c;招聘方均要求面试者一方面具备测试基础能力&#xff0c;也要求有点代码能力。 对于测试来说&#xff0c;除了测试开发&#…...

【CSS】全局声明引入自定义字体

以下用vue项目为例&#xff0c;其他的也是类似&#xff01; 在Vue.js中可以使用全局样式表来定义字体。通常&#xff0c;可以在项目中的主样式表中定义全局字体&#xff0c;然后确保该样式表在整个应用程序中被引入。 以下是一般的步骤&#xff1a; 在项目中创建一个全局样式…...

「Flask」路由+视图函数

路由 路由的作用是将 HTTP 请求的 URL 路径映射到相应的函数处理程序。这样我们在开发过程中&#xff0c;就能将不同的 URL 路径与相应的函数处理程序关联起来&#xff0c;从而实现对 Web 应用的灵活控制。 路由可以分为静态路由和动态路由。两者主要是在形式上有一些区别&am…...

信息系统项目管理师 教材目录、考试大纲、考情

文章目录 考情考试大纲第1章 信息化发展第2章 信息技术发展第3章 信息系统治理第4章 信息系统管理第5章 信息系统工程第6章 项目管理概论第7章 项目立项管理第8章 项目整合管理第9章 项目范围管理272第10章 项目进度管理297第11章 项目成本管理334第12章 项目质量管理358第13章…...

python线性回归实现

import random import torch# ①根据带有噪声的线性模型构造一个人造数据集。 使用线性模型参数w[2,−3.4] b4.2和噪声项ϵ生成数据集及其标签 def synthetic_data(w, b, num_examples):"""生成 y Xw b 噪声。"""# 生成均值为0&#xff0c;标…...

利用最小二乘法找圆心和半径

#include <iostream> #include <vector> #include <cmath> #include <Eigen/Dense> // 需安装Eigen库用于矩阵运算 // 定义点结构 struct Point { double x, y; Point(double x_, double y_) : x(x_), y(y_) {} }; // 最小二乘法求圆心和半径 …...

深入浅出:JavaScript 中的 `window.crypto.getRandomValues()` 方法

深入浅出&#xff1a;JavaScript 中的 window.crypto.getRandomValues() 方法 在现代 Web 开发中&#xff0c;随机数的生成看似简单&#xff0c;却隐藏着许多玄机。无论是生成密码、加密密钥&#xff0c;还是创建安全令牌&#xff0c;随机数的质量直接关系到系统的安全性。Jav…...

Golang dig框架与GraphQL的完美结合

将 Go 的 Dig 依赖注入框架与 GraphQL 结合使用&#xff0c;可以显著提升应用程序的可维护性、可测试性以及灵活性。 Dig 是一个强大的依赖注入容器&#xff0c;能够帮助开发者更好地管理复杂的依赖关系&#xff0c;而 GraphQL 则是一种用于 API 的查询语言&#xff0c;能够提…...

EtherNet/IP转DeviceNet协议网关详解

一&#xff0c;设备主要功能 疆鸿智能JH-DVN-EIP本产品是自主研发的一款EtherNet/IP从站功能的通讯网关。该产品主要功能是连接DeviceNet总线和EtherNet/IP网络&#xff0c;本网关连接到EtherNet/IP总线中做为从站使用&#xff0c;连接到DeviceNet总线中做为从站使用。 在自动…...

【OSG学习笔记】Day 16: 骨骼动画与蒙皮(osgAnimation)

骨骼动画基础 骨骼动画是 3D 计算机图形中常用的技术&#xff0c;它通过以下两个主要组件实现角色动画。 骨骼系统 (Skeleton)&#xff1a;由层级结构的骨头组成&#xff0c;类似于人体骨骼蒙皮 (Mesh Skinning)&#xff1a;将模型网格顶点绑定到骨骼上&#xff0c;使骨骼移动…...

网站指纹识别

网站指纹识别 网站的最基本组成&#xff1a;服务器&#xff08;操作系统&#xff09;、中间件&#xff08;web容器&#xff09;、脚本语言、数据厍 为什么要了解这些&#xff1f;举个例子&#xff1a;发现了一个文件读取漏洞&#xff0c;我们需要读/etc/passwd&#xff0c;如…...

JVM 内存结构 详解

内存结构 运行时数据区&#xff1a; Java虚拟机在运行Java程序过程中管理的内存区域。 程序计数器&#xff1a; ​ 线程私有&#xff0c;程序控制流的指示器&#xff0c;分支、循环、跳转、异常处理、线程恢复等基础功能都依赖这个计数器完成。 ​ 每个线程都有一个程序计数…...

4. TypeScript 类型推断与类型组合

一、类型推断 (一) 什么是类型推断 TypeScript 的类型推断会根据变量、函数返回值、对象和数组的赋值和使用方式&#xff0c;自动确定它们的类型。 这一特性减少了显式类型注解的需要&#xff0c;在保持类型安全的同时简化了代码。通过分析上下文和初始值&#xff0c;TypeSc…...

Spring Security 认证流程——补充

一、认证流程概述 Spring Security 的认证流程基于 过滤器链&#xff08;Filter Chain&#xff09;&#xff0c;核心组件包括 UsernamePasswordAuthenticationFilter、AuthenticationManager、UserDetailsService 等。整个流程可分为以下步骤&#xff1a; 用户提交登录请求拦…...

【Kafka】Kafka从入门到实战:构建高吞吐量分布式消息系统

Kafka从入门到实战:构建高吞吐量分布式消息系统 一、Kafka概述 Apache Kafka是一个分布式流处理平台,最初由LinkedIn开发,后成为Apache顶级项目。它被设计用于高吞吐量、低延迟的消息处理,能够处理来自多个生产者的海量数据,并将这些数据实时传递给消费者。 Kafka核心特…...