git.domain.com/a/b/main.go:
package tlsgenerate
import (
"github.com/spf13/cobra"
)
var CobraCommand = &cobra.Command{
}
git.domain.com/x/y/tlsgenerate/cmd.go:
github.com/spf13/cobra
和gometalinter说:
警告:不能使用tlsgenerate.CobraCommand(类型的变量 * git.domain.com / x / y / vendor / github.com / spf13 / cobra.Command)as * git.domain.com / a / b / vendor / github.com / spf13 / cobra.Command value in argument to rootCmd.AddCommand(megacheck)
我们使用dep来管理依赖关系。 a/b/vendor
和x/y/vendor
都存在Dim strFileName As String = Path.GetFileName(FName).Replace(" ", "%20")
Response.ContentType = "application/octet-stream" ' FLaw identified in this line
Response.AddHeader("Content-Disposition", ("attachment; filename=" + strFileName)) '
Response.Clear()
Response.WriteFile(FName)
Response.End()
。
我该如何解决这个问题?