asciigoat's INI parser
https://asciigoat.org/ini
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
217 B
16 lines
217 B
1 year ago
|
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()
|
||
|
}
|