MCPcopy
hub / github.com/pelletier/go-toml / Unmarshaler

Interface Unmarshaler

unstable/unmarshaler.go:10–12  ·  view source on GitHub ↗

Unmarshaler is implemented by types that can unmarshal a TOML description of themselves. The input is a valid TOML document containing the relevant portion of the parsed document. For tables (including split tables defined in multiple places), the data contains the raw key-value bytes from the orig

Source from the content-addressed store, hash-verified

8// contains the raw key-value bytes from the original document with adjusted
9// table headers to be relative to the unmarshaling target.
10type Unmarshaler interface {
11 UnmarshalTOML(data []byte) error
12}
13
14// RawMessage is a raw encoded TOML value. It implements Unmarshaler and can
15// be used to delay TOML decoding or capture raw content.

Callers 3

resolveCaptureMethod · 0.65
descendMethod · 0.65
assignValueMethod · 0.65

Implementers 14

pluginConfigunmarshaler_test.go
CustomUnmarshalerKeyunmarshaler_test.go
doc994unmarshaler_test.go
doc994okunmarshaler_test.go
customTable873unmarshaler_test.go
errorUnmarshaler873unmarshaler_test.go
formattingCaptureunmarshaler_test.go
rawRecorderunmarshaler_test.go
failingUnmarshalerunmarshaler_test.go
capturedunmarshaler_astgeneric_test.go
docUnmarshalTOMLinternal/imported_tests/unmarshal_impo
Custominternal/imported_tests/unmarshal_impo

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…