mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vfmt: automate transition from the old [attribute]
to the new @[attribute]
syntax (#19912)
This commit is contained in:
parent
157d603e5c
commit
f7b9e4eafd
17 changed files with 86 additions and 39 deletions
|
@ -234,7 +234,7 @@ Create a new file `article.v`:
|
|||
module main
|
||||
|
||||
struct Article {
|
||||
id int [primary; sql: serial]
|
||||
id int @[primary; sql: serial]
|
||||
title string
|
||||
text string
|
||||
}
|
||||
|
@ -411,4 +411,4 @@ app is run you will see the articles created from the previous executions
|
|||
|
||||
To be continued...
|
||||
|
||||
For an example of a more sophisticated web app written in V, check out Vorum: https://github.com/vlang/vorum
|
||||
For an example of a more sophisticated web app written in V, check out Vorum: https://github.com/vlang/vorum
|
Loading…
Add table
Add a link
Reference in a new issue