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

zero length slices should not be indented #35

Closed
komuw opened this issue Feb 21, 2023 · 1 comment · Fixed by #36
Closed

zero length slices should not be indented #35

komuw opened this issue Feb 21, 2023 · 1 comment · Fixed by #36

Comments

@komuw
Copy link
Owner

komuw commented Feb 21, 2023

req := []string{}
res := newVari(req)
fmt.Println(res)
SNIPPET: []string{
}
@komuw
Copy link
Owner Author

komuw commented Feb 21, 2023

also

req := map[string]int{"o": 1}
res := newVari(req)
fmt.Println(res)
SNIPPET: map[string]int{
   "o": int(1), }

@komuw komuw closed this as completed in #36 Feb 21, 2023
komuw added a commit that referenced this issue Feb 21, 2023
What:
- Better formatting for zero-length slices and maps

Why:
- Fixes: #35
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 a pull request may close this issue.

1 participant