MCPcopy Index your code
hub / github.com/DataDog/jsonapi / MarshalText

Method MarshalText

jsonapi_test.go:414–416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

412type EncodingIntID int
413
414func (i EncodingIntID) MarshalText() ([]byte, error) {
415 return []byte(fmt.Sprintf("%d", i)), nil
416}
417
418func (i *EncodingIntID) UnmarshalText(text []byte) error {
419 v, err := strconv.Atoi(string(text))

Callers 1

makeResourceObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected