Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move describe flags to utils and reformat #390

Merged
merged 4 commits into from
Sep 6, 2023
Merged

Conversation

Choraden
Copy link
Contributor

@Choraden Choraden commented Sep 5, 2023

No description provided.

Move sorting keys to Plain mode, as `json.Marshal` sorts the keys in map automatically[1].

```
Map values encode as JSON objects. The map's key type must either be a string, an integer type, or implement encoding.TextMarshaler.
The map keys are sorted and used as JSON object keys by applying the following rules, subject to the UTF-8 coercion described for string values above:

- keys of any string type are used directly
- encoding.TextMarshalers are marshaled
- integer keys are converted to strings
```

[1] https://pkg.go.dev/encoding/json#Marshal
@mmatczuk mmatczuk merged commit c74509b into main Sep 6, 2023
@mmatczuk mmatczuk deleted the hg/move-describe branch September 6, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants