From ded07eb1eba5f9d65ffe483fe3dc10f092e3cac8 Mon Sep 17 00:00:00 2001 From: Roman Zipp Date: Thu, 20 Jan 2022 19:04:44 +0100 Subject: [PATCH] Add metadata struct lowercase json tags --- README.md | 4 ++-- main.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8b8f125..dafc29e 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,8 @@ Show application information. ```json { - "Name": "Lithium", - "Version": "0.1.0" + "name": "Lithium", + "version": "0.1.0" } ``` diff --git a/main.go b/main.go index 79145dc..41262ca 100644 --- a/main.go +++ b/main.go @@ -16,8 +16,8 @@ const Name string = "Lithium" const Version string = "0.1.0" type Metadata struct { - Name string - Version string + Name string `json:"name"` + Version string `json:"version"` } func PipelineHandler(pipeline pipelines.IPipeline, storageProvider storage.IStorageProvider, w http.ResponseWriter, r *http.Request) {