mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
Improve struct and field comments and incorporate into json schema (#4252)
* improve struct and field comments and incorporate into json schema Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * address review feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -6,11 +6,16 @@ import (
|
||||
"sort"
|
||||
)
|
||||
|
||||
// KeyValue represents a single key-value pair.
|
||||
type KeyValue struct {
|
||||
Key string `json:"key"`
|
||||
// Key is the key name
|
||||
Key string `json:"key"`
|
||||
|
||||
// Value is the value associated with the key
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
// KeyValues represents an ordered collection of key-value pairs that preserves insertion order.
|
||||
type KeyValues []KeyValue
|
||||
|
||||
func (k KeyValues) Get(key string) (string, bool) {
|
||||
|
||||
Reference in New Issue
Block a user