I have a package which is forked from a repository myproject
. Inside the project, I want to use some functions from sha3
package, however, I need to first add a go
file to sha3
package which contains some extra functionalities. I want to include this custom sha3
package inside my project. I copied and pasted the sha3
directory into myproject
directory, and inside my go
codes, I imported sha3
package as:
import . "github.com/myproject/sha3"
. Now, when I try to build myproject
package, I am getting:
code in directory /src/github.com/myproject/sha3 expects import "golang.org/x/crypto/sha3"
. I cannot understand what the problem is. I checked all the go
files inside sha3
directory and none of them requires any import!
目录中的代码需要导入
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- duanqiao3608 2018-02-06 05:11关注
line number 66 sha3/docs.go has the import comment.
import "golang.org/x/crypto/sha3"
You can get rid of the build error by removing that.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 深度学习中的画图问题
- ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
- ¥15 Python报错怎么解决
- ¥15 simulink如何调用DLL文件
- ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
- ¥30 线性代数的问题,我真的忘了线代的知识了
- ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
- ¥188 需要修改一个工具,懂得汇编的人来。
- ¥15 livecharts wpf piechart 属性
- ¥20 数学建模,尽量用matlab回答,论文格式