Decode: unstable/Unmarshal interface (#940)

Co-authored-by: Pavlos Karakalidis <pkarakal@pkarakal.com>
Co-authored-by: Thomas Pelletier <thomas@pelletier.codes>
This commit is contained in:
rszyma
2024-03-19 17:33:12 +01:00
committed by GitHub
parent 7dad87762a
commit 8ed6d131eb
3 changed files with 133 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
package unstable
// The Unmarshaler interface may be implemented by types to customize their
// behavior when being unmarshaled from a TOML document.
type Unmarshaler interface {
UnmarshalTOML(value *Node) error
}