一个在go和rust之间的编程语言
- 官方 https://vlang.io/
- 开源 https://github.com/vlang
- 官方支持vscode https://github.com/vlang/vscode-vlang
- 官方文档(english) https://modules.vlang.io/
安装
解压到C:\app\v
,并设置到pathv -V
版本v up
更新v run main.v
编译运行v -o qq main.v
生成qq编译v -prod .
生成更小,最常用v -os linux .
交叉编译linux windowsv -arch x64 .
支持x86 x64v install xxx
安装模块v new mypackagev
创建v init
初始化 - vpm包管理
v install ui
安装v remove ui
移除v update ui
更新v list
已安装模块v outdated
查看需要更新的v install --git https://github.com/vlang/markdown
vscode自动补全
- https://github.com/vlang/v-analyzer
自动补全工具,下载二进制,配置"files.autoSave": "afterDelay", "files.autoSaveDelay": 300, "v.vls.customArgs": "C:\\app\\v\\v-analyzer.exe", "v.vls.customPath": "C:\\app\\v\\v-analyzer.exe", "v.vls.customVrootPath": "C:\\app\\v", "v.vls.debug": true, "v.vls.enable": true
作者:Yoby 创建时间:2025-06-03 01:43
最后编辑:Yoby 更新时间:2025-06-06 02:40
最后编辑:Yoby 更新时间:2025-06-06 02:40