ᴊᴏᴇ ᴄʜᴇɴ

Results 333 comments of ᴊᴏᴇ ᴄʜᴇɴ

Thanks, would you mind give a more realistic example so I can understand the needs better?

I see, if I understand correctly, you're asking a kind of validation feature similar to [**form validation**](https://go-macaron.com/docs/middlewares/binding#validate), that would be a bit more complex than I would expect originally... :trollface:

Hmm, how can `io.Reader` be read more than once? I don't think that's an expected behavior of the interface either. I'm wondering if we should just ignore the EOF error,...

Hey, if you just want to change the section for the entire struct, you can do: ```diff file := ini.Empty() -ini.ReflectFrom(file, &input) +file.Section("section1").ReflectFrom(&input) ```

> @unknwon somehow section mapping via tags, as described by @rpieczon isn't working anymore. > Could you please give an advice what I'm missing. This issue is a feature request,...

Currently it is impossible, if you want to know, you need to call methods yourself instead of using map functionality.

A way of doing this is to keep track of each field in a table (map in Go), and user can check if it exists by check that table.

For context, if there is no special character in the key or value that will confuse this library later (at parsing stage), there will be no quotes added automatically.

> Is there a fix or work-around for the key names being wrapped in "`" ? It's breaking my code. @jlagermann I am not sure if you're commenting on the...

Hi @kataras, thanks for investigating into this! I manage to get it work by applying the following diff: ```diff type TunnelingConfiguration struct { WebInterface string `ini:"web_interface"` - Tunnels. []Tunnel `ini:"tunnels"`...