indents(go): no indent at all composite_literal, indent at struct_type

This commit is contained in:
Stephan Seitz 2022-08-10 23:01:57 +02:00
parent ac5456567a
commit d1ce3db8ea
2 changed files with 13 additions and 5 deletions

View file

@ -7,8 +7,16 @@ func correct(word string) {
select {
} // <---
arr := []struct {
} // <---
}
func test() {
cases := []struct {
first, second string
} {
{"Hello", "World"},
}
for range cases {
println("random stuff")
}
}