导入“golang.org/x/net/route”时
它告诉“构建约束排除 go/src/golang.org/x/net/routego 中的所有 Go 文件”
我在 Windows/Linux 上使用 VSCode 编辑器
我在网上搜索并没有看到类似问题的解决方案
package main
import (
"golang.org/x/net/route"
)
{
rib, _ := route.FetchRIB(0, route.RIBTypeRoute, 0)
messages, err := route.ParseRIB(route.RIBTypeRoute, rib)
}
Run Code Online (Sandbox Code Playgroud) go ×1