Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DoNewsCode/core
/ Unmarshal
Method
Unmarshal
contract/codec.go:5–5 ·
view source on GitHub ↗
(data []byte, value interface{})
Source
from the content-addressed store, hash-verified
3
// Codec is an interface for serialization and deserialization.
4
type
Codec
interface
{
5
Unmarshal(data []byte, value
interface
{}) error
6
Marshal(value
interface
{}) ([]byte, error)
7
}
Callers
15
TestCodec_Unmarshal
Function · 0.65
Unmarshal
Method · 0.65
TestJSON_Unmarshal
Function · 0.65
Unmarshal
Method · 0.65
TestContextMeta_crud
Function · 0.65
TestContextMeta_ErrNoBaggage
Function · 0.65
TestContextMeta_ErrNotFound
Function · 0.65
TestContextMeta_ErrIncompatibleType
Function · 0.65
ExampleBaggage_Unmarshal
Function · 0.65
NewEnvFromConf
Function · 0.65
TestKoanfAdapter_Unmarshal_Json
Function · 0.65
TestKoanfAdapter_Unmarshal_Yaml
Function · 0.65
Implementers
3
Codec
codec/yaml/yaml.go
Codec
codec/json/json.go
CodecParser
config/codec_parser.go
Calls
no outgoing calls
Tested by
13
TestCodec_Unmarshal
Function · 0.52
TestJSON_Unmarshal
Function · 0.52
TestContextMeta_crud
Function · 0.52
TestContextMeta_ErrNoBaggage
Function · 0.52
TestContextMeta_ErrNotFound
Function · 0.52
TestContextMeta_ErrIncompatibleType
Function · 0.52
ExampleBaggage_Unmarshal
Function · 0.52
TestKoanfAdapter_Unmarshal_Json
Function · 0.52
TestKoanfAdapter_Unmarshal_Yaml
Function · 0.52
TestMapAdapter_Unmarshal
Function · 0.52
TestCodecParser_Unmarshal
Function · 0.52
TestDuration_UnmarshalJSON
Function · 0.52