Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import 第三方包的时候出错 #36

Open
rushairer opened this issue Aug 31, 2017 · 1 comment
Open

import 第三方包的时候出错 #36

rushairer opened this issue Aug 31, 2017 · 1 comment

Comments

@rushairer
Copy link

模板里这样写

<%!
    import (
    "intab-webserver/bootstrap"
    )

var cdnhost = bootstrap.GetApp().Config.CDNHost
%>
<!DOCTYPE html>...

hero命令的时候就报错

vet: /Users/abenx/go/src/intab-webserver/template/layouts_master.html.go:7:2: could not import intab-webserver/bootstrap (can't find import: intab-webserver/bootstrap)

但是生成.go文件里是正常的

@shiyanhui
Copy link
Owner

你单独 go vet layouts_master.html.go看报错不?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants