跳转到内容

vformat

  • 格式化字符串,支持内置变量转义

此接口跟format接口类似,只是增加对内置变量的获取和转义支持。

lua
local s = vformat("hello %s $(mode) $(arch) $(env PATH)", xmake)