Moved to https://github.com/mitranim/gg. This repo is usable but frozen.
"Missing feature" of the Go packages encoding and fmt: unmarshal arbitrary
text into an arbitrary value. Counterpart to the marshaling functionality of
fmt.Sprintf("%v").
See the full documentation at https://godoc.org/github.com/mitranim/untext.
var num int64
err := untext.Parse(`10`, &num)
var inst time.Time
err = untext.Parse(`0001-02-03T04:05:06Z`, &inst)Breaking: use terms "unmarshal" for []byte inputs and "parse" for string inputs. This conforms to the standard library naming conventions.
I'm receptive to suggestions. If this library almost satisfies you but needs changes, open an issue or chat me up. Contacts: https://mitranim.com/#contacts