From 277a50125f9c9bd23d8434888705b9df49eac7d9 Mon Sep 17 00:00:00 2001 From: Trevor Suarez Date: Wed, 16 Jan 2019 01:33:43 -0700 Subject: [PATCH] Updating the "Encode" example in the README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4fb71e..ea7abe7 100644 --- a/README.md +++ b/README.md @@ -114,14 +114,14 @@ model := exampleModel{ jsonEncoder := json.NewEncoder(os.Stdout) jsonEncoder.SetIndent(marshalPrefix, marshalIndent) -conjson.NewEncoder(jsonEncoder, transform.CamelCaseKeys()).Encode(model) +conjson.NewEncoder(jsonEncoder, transform.CamelCaseKeys(false)).Encode(model) // Output: // { // "title": "Example Title", // "description": "This is a description.", -// "imageUrl": "https://example.com/image.png", -// "referredByUrl": "https://example.com/referrer/index.html", +// "imageURL": "https://example.com/image.png", +// "referredByURL": "https://example.com/referrer/index.html", // "isActive": true, // "createdAt": "2015-11-17T20:43:31-05:00", // "updatedAt": "2018-12-24T13:21:15-07:00"