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

Method UnmarshalID

jsonapi_test.go:397–404  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

395}
396
397func (a *ArticleIntIDID) UnmarshalID(id string) error {
398 v, err := strconv.Atoi(id)
399 if err != nil {
400 return err
401 }
402 a.ID = IntID(v)
403 return nil
404}
405
406var (
407 // ensure EncodingIntID implements encoding.[TextMarshaler|TextUnmarshaler]

Callers

nothing calls this directly

Calls 1

IntIDTypeAlias · 0.85

Tested by

no test coverage detected