wangsongyan / wblog Goto Github PK
View Code? Open in Web Editor NEW基于gin+gorm开发的个人博客项目
Home Page: http://blog.wangsy.me/
License: MIT License
基于gin+gorm开发的个人博客项目
Home Page: http://blog.wangsy.me/
License: MIT License
govendor sync看到下载了很多文件下载出来,长时间卡着,找到原因了,是被墙了!
但是go run main.go:qiniu那提示找不到
controllers\backup.go:16:2: cannot find package "qiniupkg.com/api.v7/kodo" in any of:
这是什么问题?按照例子运行,出现了这个
goroutine 1 [running]:
html/template.Must(0x0, 0xe59320, 0x12e34ab8, 0x0)
C:/Go/src/html/template/template.go:364 +0x3e
github.com/wangsongyan/wblog/vendor/github.com/gin-gonic/gin.(*Engine).LoadHTMLG
lob(0x1326f320, 0x12ebd1f0, 0x61)
GOPATH/src/github.com/wangsongyan/wblog/vendor/github.
com/gin-gonic/gin/gin.go:162 +0xb3d
GOPATH/src/github.com/wangsongyan/wblog/main.go:182 +0x2ea
main.main()
GOPATH/src/github.com/wangsongyan/wblog/main.go:52 +0x3e5
exit status 2
您好!
govendor sync 报错
Error: Remotes failed for:
Failed for "golang.org/x/net/context" (failed to ping remote repo): unrecognized import path "golang.org/x/net/context"
Failed for "golang.org/x/net/html" (failed to ping remote repo): unrecognized import path "golang.org/x/net/html"
Failed for "golang.org/x/net/html/atom" (failed to ping remote repo): unrecognized import path "golang.org/x/net/html/atom"
Failed for "golang.org/x/sys/unix" (failed to ping remote repo): unrecognized import path "golang.org/x/sys/unix"
Failed for "qiniupkg.com/api.v7/api" (failed to ping remote repo): unrecognized import path "qiniupkg.com/api.v7/api"
我知道这是因为被墙了的原因。但是我是挂了VPN的(蓝灯),还是依然无法拉取到库。
也尝试过使用glide来管理第三方库,依然是无法连接到一些地址。
请教一下,是VPN太垃圾,还是需要额外配置一些东西,才能够用govendor管理库?
谢谢!
follows are my troubles.
I use cmd "go mod tidy",and then question appeared.My golang version is "go1.19.1 windows/amd64".
I need you help,be eager for you reply,thankyou
start/controllers imports
github.com/qiniu/api.v7/auth/qbox imports
github.com/qiniu/x/bytes.v7/seekable imports
qiniupkg.com/x/bytes.v7: module qiniupkg.com/x@latest found (v1.11.5), but does not contain package qiniupkg.com/x/bytes.v7
start/controllers imports
github.com/qiniu/api.v7/storage imports
github.com/qiniu/x/xlog.v7 imports
qiniupkg.com/x/log.v7: module qiniupkg.com/x@latest found (v1.11.5), but does not contain package qiniupkg.com/x/log.v7
start/controllers imports
github.com/qiniu/api.v7/storage imports
github.com/qiniu/x/xlog.v7 imports
qiniupkg.com/x/reqid.v7: module qiniupkg.com/x@latest found (v1.11.5), but does not contain package qiniupkg.com/x/reqid.v7
../../gorilla/feeds/feed.go:133: e.SetIndent undefined (type *json.Encoder has no field or method SetIndent)
运行main文件时出现“cannot load github.com/qiniu/x/bytes.v7”错误,网上看了一下应该是依赖的这个仓库发生变动
有些方法不是很通用,如果以后业务复杂,还要写更多的逻辑方法,这种是不是放到service比价好点?
还有这个model这个块有没有更好的组织方式?
我也在考虑这个问题
$ govendor sync Error: Remotes failed for: Failed for "golang.org/x/net/context" (failed to ping remote repo): unre cognized import path "golang.org/x/net/context" Failed for "golang.org/x/net/html" (failed to ping remote repo): unrecog nized import path "golang.org/x/net/html" Failed for "golang.org/x/net/html/atom" (failed to ping remote repo): un recognized import path "golang.org/x/net/html/atom" Failed for "golang.org/x/sys/unix" (failed to ping remote repo): unrecog nized import path "golang.org/x/sys/unix"
我最近在学习go
也是使用gin+gorm+adminlte写一个联系项目.
但是在模板这个地方遇到问题了.
我使用了a multitemplate render 这个包.
使用以后, 模板函数, 就不能使用了.
如果不使用这个包, 模板布局有点麻烦.
所以, 我想问一下, 怎么样才能使用这个包, 并且能够解决模板函数的问题?
gin-contrib/multitemplate#2
其他人好像也遇到了这个问题.
cannot find package "qiniupkg.com/api.v7/kodo"
go: downloading golang.org/x/sys v0.0.0-20200928205150-006507a75852
github.com/Bowery/prompt
../../go/pkg/mod/github.com/!bowery/[email protected]/ioctl_unix.go:25:28: undefined: unix.SYS_IOCTL
../../go/pkg/mod/github.com/!bowery/[email protected]/ioctl_unix.go:38:28: undefined: unix.SYS_IOCTL
../../go/pkg/mod/github.com/!bowery/[email protected]/ioctl_unix.go:55:28: undefined: unix.SYS_IOCTL
如题
gorm 一对多关系 怎么使用
看功能列表已经完成,但是无法发送邮件,没有收到邮件,订阅状态也无法激活。
请问该如何设置,需要再安装什么包吗?
Windows10
我在GoLand IDE中调试和编译。发现用这个方法获得的路径是X:\xxxx\xxx\AppData\Local\Temp路径. 然后去找views的时候就找不到,报错了。
如果使用go build main.go 。然后直接run, 则路径没有问题。
这是什么原因呢,应该怎么解决
1565252748753430900 [Critical] err parsing seelog config fileopen conf/seelog.xm l: The system cannot find the path specified.
$ govendor sync 报错如下
--
你好!
七牛的 "qiniupkg.com/api.v7/kodo" "qiniupkg.com/api.v7/kodocli" 这两个包没有了。
运行遇到./main.go:190:11: undefined: "github.com/gin-contrib/sessions".NewCookieStore 重新安装github.com/gin-contrib/sessions还是无法解决
clone了一份,准备学习下,好不容吧各种库都go get了(没有用go govendor),发现没有sqlite3
文件.
我在golang IDE下新建了一个工程,然后安装了govendor
然后clone了楼主源码放在了项目src下面,然后执行govendor sync就报错了,
错误如下:
Error: Vendor file at "vendor" not found.
govendor sync
Ensures the contents of the vendor folder matches the vendor file.
Options:
-n dry run, print out action only
-insecure allow downloading over insecure connection
-v verbose output
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.