8000 should throw error when invalid input · Issue #96 · go-ini/ini · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
should throw error when invalid input #96
Closed
@bruceauyeung

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

4BAA

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

      0