0cfb319d87
Signed-off-by: Alejandro Mery <amery@jpi.io>
16 lines
217 B
Go
16 lines
217 B
Go
package ini
|
|
|
|
import "io"
|
|
|
|
// ReadInto ...
|
|
func ReadInto(v any, r io.Reader) error {
|
|
dec := NewDecoder(r)
|
|
|
|
return dec.Unmarshal(v)
|
|
}
|
|
|
|
// Unmarshal ...
|
|
func (dec *Decoder) Unmarshal(any) error {
|
|
return dec.p.Run()
|
|
}
|