V语言关键字解读


官方文档:https://vlang.io/docs#keywords

V has 22 keywords:

break 
const  
continue 
defer 
else 
enum 
fn
for
go
goto
if
import
in 
interface 
match 
module 
mut  用于申明可变变量,申明并初始化后的变量在后面可以直接用=赋值,不用mut申明的变量后面不可改变。例如:

mut name:='dashen'
println(name)
name='dada'
println(name)

or 
pub 
return
struct
type