dqrsceg6279196 2018-04-08 21:59
浏览 68

找不到net.Resolver

I have installed go 1.7 in Debian to make doh

It has a Makefile, which triggers the download and install of dependencies into my GOPATH.

The net package is there:

$ ls $GOPATH/src/github.com/golang/net/
AUTHORS         context          dict  http   idna      ipv6     lif      PATENTS       README.md  webdav
bpf             CONTRIBUTING.md  dns   http2  internal  lex      nettest  proxy         route      websocket
codereview.cfg  CONTRIBUTORS     html  icmp   ipv4      LICENSE  netutil  publicsuffix  trace      xsrftoken

Yet during the build, it says it cannot find net.Resolver

$ make
go get -d -v ./doh-client ./doh-server
cd doh-client && go build
# _/home/share/apps/dns-over-https/doh-client
./client.go:47: undefined: net.Resolver
Makefile:46: recipe for target 'doh-client/doh-client' failed
make: *** [doh-client/doh-client] Error 2

This is my first go with go, so I am not sure how it goes about pulling in imports, and whether the Resolver part is present.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器