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

Function Status

errors.go:112–114  ·  view source on GitHub ↗

Status provides a helper for setting an Error.Status value.

(s int)

Source from the content-addressed store, hash-verified

110
111// Status provides a helper for setting an Error.Status value.
112func Status(s int) *int {
113 return &s
114}
115
116// Error represents a JSON:API error object as defined by https://jsonapi.org/format/1.1/#error-objects.
117type Error struct {

Callers 1

jsonapi_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected