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

ForKind should return an error instead of panicing #38

Closed
lukasmalkmus opened this issue Dec 21, 2021 · 1 comment
Closed

ForKind should return an error instead of panicing #38

lukasmalkmus opened this issue Dec 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@lukasmalkmus
Copy link

The ForKind function panics for an unknown column type:

panic(fmt.Errorf("column: unsupported column kind (%v)", kind))

But it would be nicer if it would error and be picked up by:

c.CreateColumn(k, ForKind(reflect.TypeOf(v).Kind()))

@kelindar kelindar added the enhancement New feature or request label Dec 21, 2021
@kelindar
Copy link
Owner

Added in the last PR #39

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

No branches or pull requests

2 participants