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

panic when input struct have a member type of []int #35

Open
lynnzhang89 opened this issue Nov 25, 2022 · 1 comment
Open

panic when input struct have a member type of []int #35

lynnzhang89 opened this issue Nov 25, 2022 · 1 comment

Comments

@lynnzhang89
Copy link

hi, i got a problem when pass a struct which have an slice of int member, here is the test code below:
`package main

import (
"github.com/leebenson/conform"
)

type UserForm struct {
Age []int
}

func main() {
input := UserForm{
Age: []int{1},
}
conform.Strings(&input) // panic
}
`
and below is panic info:
image

lynnzhang89 pushed a commit to lynnzhang89/conform that referenced this issue Nov 25, 2022
@6thpath
Copy link

6thpath commented Jan 10, 2023

any update on this, I'm getting the same issue

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