We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func (t *DataSourceType) UnmarshalText(text []byte) error { if t == nil { return errors.New("can't unmarshal a nil *DataSourceRole") } if t.unmarshalText(bytes.ToLower(text)) { return fmt.Errorf("unrecognized protocal type: %q", text) } return nil }
What happened: 支持的角色类型、协议类型,返回了error的错误 What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
if t.unmarshalText(bytes.ToLower(text)) { return fmt.Errorf("unrecognized protocal type: %q", text) }
改为
if !t.unmarshalText(bytes.ToLower(text)) { return fmt.Errorf("unrecognized protocal type: %q", text) }
Anything else we need to know?:
The text was updated successfully, but these errors were encountered:
提个 pr 修复下哇,另外 error 的提示也有问题, DataSourceRole 提示的是 unrecognized protocal type
Sorry, something went wrong.
689758c
Merge pull request #7 from Penglq/master
aa2186f
修复解析配置role、type字段 fix #3
Successfully merging a pull request may close this issue.
What happened:
支持的角色类型、协议类型,返回了error的错误
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
改为
Anything else we need to know?:
The text was updated successfully, but these errors were encountered: