Browse Source

Unmarshal: WIP

Signed-off-by: Alejandro Mery <amery@jpi.io>
dev-amery-basic
Alejandro Mery 1 year ago
parent
commit
c9f206c9aa
  1. 15
      unmarshal.go

15
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()
}
Loading…
Cancel
Save