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

nopanic Tag无效 #163

Open
jassls opened this issue Sep 16, 2022 · 2 comments
Open

nopanic Tag无效 #163

jassls opened this issue Sep 16, 2022 · 2 comments
Assignees

Comments

@jassls
Copy link

jassls commented Sep 16, 2022

Reproducible Example

copier:"must,nopanic"无法返回错误

Description

copier:"must,nopanic" 在未发生拷贝时无法返回错误
copier:"must, nopanic" 在未发生拷贝时可以返回错误
区别逗号后多了一个空格
go version 1.16

@daidai21
Copy link

这里没有去除空格

for _, t := range strings.Split(tag, ",") {

e.g.
t.Logf(ToString(strings.Split("a, b,c", ","))) -> ["a"," b","c"]

" nopanic"的flg没有解析出来

@Haimiandiaodiao
Copy link

return

问题应该是 声明了error 但是没有返回

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

4 participants