Browse Source

Add metadata struct lowercase json tags

feature/start-readme
Roman Zipp 3 years ago
committed by Fabian Vowie
parent
commit
ded07eb1eb
No known key found for this signature in database GPG Key ID: C27317C33B27C410
  1. 4
      README.md
  2. 4
      main.go

4
README.md

@ -66,8 +66,8 @@ Show application information.
```json ```json
{ {
"Name": "Lithium",
"Version": "0.1.0"
"name": "Lithium",
"version": "0.1.0"
} }
``` ```

4
main.go

@ -16,8 +16,8 @@ const Name string = "Lithium"
const Version string = "0.1.0" const Version string = "0.1.0"
type Metadata struct { 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) { func PipelineHandler(pipeline pipelines.IPipeline, storageProvider storage.IStorageProvider, w http.ResponseWriter, r *http.Request) {

Loading…
Cancel
Save