Skip to content

should throw error when invalid input #96

Description

@bruceauyeung

saying i have

[user1]
name=bruce
age=a30

my struct

type user struct {
    Name string
    Age int
}

when i try to

err = cfg.MapTo(u)

i expect an error is throwed out because a30 is not a valid int value, but actually go-ini didn't throw any error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions