diff --git a/unmarshal.go b/unmarshal.go new file mode 100644 index 0000000..bf4cca8 --- /dev/null +++ b/unmarshal.go @@ -0,0 +1,15 @@ +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() +}