草庐IT

VENDOR_NAME

全部标签

go - vendor 问题 : found packages text (doc. 去)和转换(examples_test.go)在我的 vendor

这个问题在这里已经有了答案:Error"can'tloadpackage:packagemy_prog:foundpackagesmy_progandmain"(3个答案)关闭4年前。我遇到了一些问题:enterimagedescriptionhere..\vendor\github.com\spf13\afero\util.go:28:2:在D:\golang\src\services\vendor中找到包文本(doc.go)和转换(examples_test.go)\golang.org\x\text\transform我该如何解决这个问题?谢谢。

go - type <Name> <dataType> 和 type <Name> = <dataType> 有什么区别

我是Golang的新手。抱歉,我仍然对以下两者之间的区别感到困惑:type和type=这是一个例子:packagemainimport"fmt"funcmain(){var(strWordWordstrTextText)strWord="gopher"strText="golang"fmt.Printf("strWord=%s,TypeofValue=%T\n",strWord,strWord)fmt.Printf("strText=%s,TypeofValue=%T\n",strText,strText)}typeWordstringtypeText=string输出strWord=

再会!在这个程序中,我制作了包括 Handle 函数的餐厅菜单。我无法将数组 : Name, Price 与函数 getall 和 get 连接起来

美好的一天!在这个程序中,我为餐厅制作了包含Handle功能的菜单。问题陈述:我无法连接数组:Name,Price与函数getall和get。packagemainimport("fmt""net/http""io""strconv""net/url")typeMenustruct{NamestringPriceintdescriptionstring}func(mMenu)String()string{returnfmt.Sprintf("%s:%s",m.Name,m.Price,)}funcmain(){x:=[]Menu{{Name:"Crispy",Price:31},{Na

amazon-web-services - 转到 AWS SDK "Unable to determine service/operation name to be authorized"

我正在使用GoSDK连接到KinesisVideoStreams服务。发出GetMedia请求时,我收到了包含以下正文的403响应:Unabletodetermineservice/operationnametobeauthorized我正在使用LogLevelLogDebugWithHTTPBody查看此内容,因为SDK需要JSON并接收XML,从而导致SerializationError。我正在使用Go1.9.2并尝试对aws-sdk-go的v1和v2进行此操作,结果相同。这是我的要求:POST/getMediaHTTP/1.1Host:kinesisvideo.us-west-2

Go 1.11 忽略了 `vendor` 目录,错误给人的印象是该目录从未被看过

我遇到了Go1.11.4的问题,忽略了我所在项目的vendor目录。尝试运行各种命令时,我收到以下错误,即使引用的路径清楚地存在于vendor目录中。错误消息本身似乎表明甚至没有查看vendor目录,至少对于这个应该找不到的项目来说是这样。到底发生了什么,我该如何解决这个问题?下面是从终端直接复制/粘贴,经过一些pbpaste|sed"s#…#R#g;s#…#M#g;s#…#D#g;s#…#B#g;s#…#example.org#g;s#^#printf\t#g"|pbcopy脚本来匿名存储库。ubuntu:R{607}goversiongoversiongo1.11.4linux/a

go - 将 dep 用于 golang 时如何从 vendor 文件夹中排除内部依赖项

我有一个项目依赖于内部git存储库中的另外两个项目。它已经存在于GOPATH中。我面临的问题是,dep-init-gopath仍会复制vendor/目录下的那些项目。因此,我使用的GoLandIDE很困惑从哪里解决依赖关系。(我希望它从GOPATH而不是Vendor目录解析)如果我删除vendor/目录,程序将运行。我的Gopkg.toml文件如下所示:[[constraint]]branch="master"name="github.com/sirupsen/logrus"[[constraint]]branch="master"name="github.com/stretchr/t

mysql - GoLang 的配置返回 "non-name"错误

我在编译Google-Cloud提供的使用Golang远程连接到mysql数据库的代码时遇到问题。代码是从此处直接复制粘贴的:https://cloud.google.com/sql/docs/mysql/connect-external-app#go。也可以看这里:https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/proxy/dialers/mysql/hook_test.go。我已经尝试为下面的第一行提供第二个变量,但是出现错误,因为mysql函数只返回一个值。麻烦的代码在第二行,可能是第一行的原因。

go - x/手机 : Launch a android application with given package name [String] in go

下面是用go写的函数:funcLaunchApplication(packageNamestring){Query:howcanIexecuteapplicationwithgivenpackageName}使用gomobile生成java绑定(bind)[.aar]。我想包含在我的android应用程序中生成的.aar,并从java层调用LaunchApplication("com.package.name")到本地go层,go层应该运行该应用程序。在java应用中,使用包名运行apk的方法如下:Processprocess=Runtime.getRuntime().exec("am

golang vendor 路径找不到包

我正在构建来自github.com/tarm/serial的示例程序.案例1:如果将上述repocheckout到$GOPATH/src/github.com/tarm/serial中,则构建正常。情况2:如果repo移动到$GOPATH/src/vendor/github.com/tarm/serial下,gobuild命令会提示cannot找到包“github.com/tarm/serial。案例3:otherSOanswers建议放在./vendor下,这样包就在./vendor/github.com/tarm/serial。那也行不通。go版本是1.10.4。我相信看到建议案例

go - 运行 dep 时出错确保 : Grouped write of manifest, 锁和 vendor :无法统计 VerifyVendor 声称存在的文件

运行depensure时出现以下错误:Groupedwriteofmanifest,lockandvendor:couldnotstatfilethatVerifyVendorclaimedexisted:stat"pathtopackageinsidevendor":nosuchfileordirectory这是我的Gopkg.toml:[[constraint]]name="github.com/PuerkitoBio/goquery"version="1.5.0"[[constraint]]branch="master"name="github.com/auth0-communi