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:
@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user