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

[Question]按照官方文档初次安装,启动不了not enough arguments in call to template2.Get #640

Open
notwin opened this issue Nov 19, 2024 · 1 comment

Comments

@notwin
Copy link

notwin commented Nov 19, 2024

问题描述 [详细地描述问题,让大家都能理解]

go run .

goadmin/pages

pages/index.go:18:30: not enough arguments in call to template2.Get
have (string)
want (*"github.com/GoAdminGroup/go-admin/context".Context, string)
make: *** [serve] Error 1

go 版本是1.23.3
系统是 macos 15.1

请求帮助

@notwin
Copy link
Author

notwin commented Nov 19, 2024

已解决,让 AI 给我改的
components := template2.Get(config.GetTheme())
改成了
components := template2.Get(ctx, config.GetTheme())

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

1 participant