From d5491e6e77ec4876ecc24e0c964831caa8a08ea1 Mon Sep 17 00:00:00 2001 From: Bob Wang <1982wb@gmail.com> Date: Sun, 10 Apr 2022 15:06:56 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8dfb943..8da5d09 100644 --- a/README.md +++ b/README.md @@ -291,7 +291,7 @@ If you need to include [link objects](http://jsonapi.org/format/#document-links) ```go func (post Post) JSONAPILinks() *Links { return &Links{ - "self": "href": fmt.Sprintf("https://example.com/posts/%d", post.ID), + "self": fmt.Sprintf("https://example.com/posts/%d", post.ID), "comments": Link{ Href: fmt.Sprintf("https://example.com/api/blogs/%d/comments", post.ID), Meta: map[string]interface{}{