MCPcopy Create free account
hub / github.com/DataDog/jsonapi / UnmarshalIdentifier

Interface UnmarshalIdentifier

jsonapi.go:385–387  ·  view source on GitHub ↗

UnmarshalIdentifier can be optionally implemented to control unmarshaling of the primary field from a string. The order of operations for unmarshaling the primary field is: 1. Use UnmarshalIdentifier if it is implemented 2. Use the value directly if it is a string 3. Fail

Source from the content-addressed store, hash-verified

383// 2. Use the value directly if it is a string
384// 3. Fail
385type UnmarshalIdentifier interface {
386 UnmarshalID(id string) error
387}
388
389// MarshalType can be optionally implemented to control marshaling of the type field.
390//

Callers 1

unmarshalFieldsMethod · 0.65

Implementers 2

ArticleIntIDjsonapi_test.go
ArticleIntIDIDjsonapi_test.go

Calls

no outgoing calls

Tested by

no test coverage detected