go语言不区分大小写的导包,导致的debug 失败

栏目: Go · 发布时间: 6年前

内容简介:鼠标放上去提示 could not find XXXXXdebug失效图片:原因是go语言导包不区分大小写但是必须一致,由于我的包路径是 admin/util 我统一用Admin/util 来import。这就导致来debug时找不到代码路径,都改为admin就可以debug了。

鼠标放上去提示 could not find XXXXX

debug失效图片:

go语言不区分大小写的导包,导致的debug 失败

image.png

原因是 go 语言导包不区分大小写但是必须一致,由于我的包路径是 admin/util 我统一用Admin/util 来import。这就导致来debug时找不到代码路径,都改为admin就可以debug了。

相关大小写不一致报错

Golang case-insensitive import collision 这个是包导入大小写错误,大小写不一致能够导入,但是不能通过编译。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Probabilistic Method Second Edition

The Probabilistic Method Second Edition

Noga Alon、Joel H. Spencer / Wiley-Blackwell / 2000 / $121.95

The leading reference on probabilistic methods in combinatorics-now expanded and updated When it was first published in 1991, The Probabilistic Method became instantly the standard reference on one......一起来看看 《The Probabilistic Method Second Edition》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

html转js在线工具
html转js在线工具

html转js在线工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具