1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: align each contiguous field of struct. not the whole. (#7981)

This commit is contained in:
zakuro
2021-01-12 12:38:43 +09:00
committed by GitHub
parent 82a5300044
commit 33694665f0
41 changed files with 533 additions and 497 deletions

View File

@ -2426,10 +2426,10 @@ struct Foo {
}
struct User {
name string
age int
name string
age int
// Use the `skip` attribute to skip certain fields
foo Foo [skip]
foo Foo [skip]
// If the field name is different in JSON, it can be specified
last_name string [json: lastName]
}