From 67b0aca0ba439f89fef16d89f4c3b54d85255667 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 75f25e8..c20d909 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) {