Browse Source
Add metadata struct lowercase json tags
feature/update-route-registration
Roman Zipp
3 years ago
committed by
Fabian Vowie
No known key found for this signature in database
GPG Key ID: C27317C33B27C410
2 changed files with
4 additions and
4 deletions
-
README.md
-
main.go
|
@ -66,8 +66,8 @@ Show application information. |
|
|
|
|
|
|
|
|
```json |
|
|
```json |
|
|
{ |
|
|
{ |
|
|
"Name": "Lithium", |
|
|
|
|
|
"Version": "0.1.0" |
|
|
|
|
|
|
|
|
"name": "Lithium", |
|
|
|
|
|
"version": "0.1.0" |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
@ -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) { |
|
|