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

Struct Article

marshal_example_test.go:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9func ExampleMarshal() {
10 type Article struct {
11 ID string `jsonapi:"primary,articles"`
12 Title string `jsonapi:"attribute" json:"title"`
13 }
14
15 a := Article{ID: "1", Title: "Hello World"}
16

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected