vfmt: automate transition from the old [attribute] to the new @[attribute] syntax (#19912)

This commit is contained in:
Delyan Angelov 2023-11-17 17:43:29 +02:00 committed by GitHub
parent 157d603e5c
commit f7b9e4eafd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 86 additions and 39 deletions

View file

@ -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