开发者社区 问答 正文

Golang使用goquery报错?报错

最近刚开始学习golang,想着做个例子练练手,本想着做个小爬虫的,结果就这么出错了

I:\GoPath\src\github.com\andybalholm\cascadia\parser.go:11:2: cannot find package "golang.org/x/net/html" in any of:

c:\go\src\golang.org\x\net\html (from $GOROOT)

I:\GoPath\src\golang.org\x\net\html (from $GOPATH)

import (
    "github.com/PuerkitoBio/goquery"

)



展开
收起
爱吃鱼的程序员 2020-06-09 13:09:48 594 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    最近刚开始学习golang,想着做个例子练练手,本想着做个小爬虫的,结果就这么出错了

    2020-06-09 13:11:24
    赞同 展开评论
问答分类:
问答标签:
问答地址: