当前位置: 首页 > 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;标…...

相机从app启动流程

一、流程框架图 二、具体流程分析 1、得到cameralist和对应的静态信息 目录如下: 重点代码分析: 启动相机前,先要通过getCameraIdList获取camera的个数以及id,然后可以通过getCameraCharacteristics获取对应id camera的capabilities(静态信息)进行一些openCamera前的…...

项目部署到Linux上时遇到的错误(Redis,MySQL,无法正确连接,地址占用问题)

Redis无法正确连接 在运行jar包时出现了这样的错误 查询得知问题核心在于Redis连接失败&#xff0c;具体原因是客户端发送了密码认证请求&#xff0c;但Redis服务器未设置密码 1.为Redis设置密码&#xff08;匹配客户端配置&#xff09; 步骤&#xff1a; 1&#xff09;.修…...

GC1808高性能24位立体声音频ADC芯片解析

1. 芯片概述 GC1808是一款24位立体声音频模数转换器&#xff08;ADC&#xff09;&#xff0c;支持8kHz~96kHz采样率&#xff0c;集成Δ-Σ调制器、数字抗混叠滤波器和高通滤波器&#xff0c;适用于高保真音频采集场景。 2. 核心特性 高精度&#xff1a;24位分辨率&#xff0c…...

均衡后的SNRSINR

本文主要摘自参考文献中的前两篇&#xff0c;相关文献中经常会出现MIMO检测后的SINR不过一直没有找到相关数学推到过程&#xff0c;其中文献[1]中给出了相关原理在此仅做记录。 1. 系统模型 复信道模型 n t n_t nt​ 根发送天线&#xff0c; n r n_r nr​ 根接收天线的 MIMO 系…...

Python 包管理器 uv 介绍

Python 包管理器 uv 全面介绍 uv 是由 Astral&#xff08;热门工具 Ruff 的开发者&#xff09;推出的下一代高性能 Python 包管理器和构建工具&#xff0c;用 Rust 编写。它旨在解决传统工具&#xff08;如 pip、virtualenv、pip-tools&#xff09;的性能瓶颈&#xff0c;同时…...

Redis的发布订阅模式与专业的 MQ(如 Kafka, RabbitMQ)相比,优缺点是什么?适用于哪些场景?

Redis 的发布订阅&#xff08;Pub/Sub&#xff09;模式与专业的 MQ&#xff08;Message Queue&#xff09;如 Kafka、RabbitMQ 进行比较&#xff0c;核心的权衡点在于&#xff1a;简单与速度 vs. 可靠与功能。 下面我们详细展开对比。 Redis Pub/Sub 的核心特点 它是一个发后…...

C++.OpenGL (14/64)多光源(Multiple Lights)

多光源(Multiple Lights) 多光源渲染技术概览 #mermaid-svg-3L5e5gGn76TNh7Lq {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-3L5e5gGn76TNh7Lq .error-icon{fill:#552222;}#mermaid-svg-3L5e5gGn76TNh7Lq .erro…...

JS设计模式(4):观察者模式

JS设计模式(4):观察者模式 一、引入 在开发中&#xff0c;我们经常会遇到这样的场景&#xff1a;一个对象的状态变化需要自动通知其他对象&#xff0c;比如&#xff1a; 电商平台中&#xff0c;商品库存变化时需要通知所有订阅该商品的用户&#xff1b;新闻网站中&#xff0…...

浪潮交换机配置track检测实现高速公路收费网络主备切换NQA

浪潮交换机track配置 项目背景高速网络拓扑网络情况分析通信线路收费网络路由 收费汇聚交换机相应配置收费汇聚track配置 项目背景 在实施省内一条高速公路时遇到的需求&#xff0c;本次涉及的主要是收费汇聚交换机的配置&#xff0c;浪潮网络设备在高速项目很少&#xff0c;通…...

三分算法与DeepSeek辅助证明是单峰函数

前置 单峰函数有唯一的最大值&#xff0c;最大值左侧的数值严格单调递增&#xff0c;最大值右侧的数值严格单调递减。 单谷函数有唯一的最小值&#xff0c;最小值左侧的数值严格单调递减&#xff0c;最小值右侧的数值严格单调递增。 三分的本质 三分和二分一样都是通过不断缩…...