Skip to content

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

@lynnzhang89

Description

@lynnzhang89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions