Align columns: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
|||
Line 10,319: | Line 10,319: | ||
justified, right justified, or center justified within its column.</pre> |
justified, right justified, or center justified within its column.</pre> |
||
=={{header|Vlang}}== |
=={{header|V (Vlang)}}== |
||
Currently (5/2022) |
Currently (5/2022) V (Vlang) uses string interpolation so `$` have to be escaped. Variables in formatting aren't currently allowed, and if they were only right/left are currently valid options |
||
<syntaxhighlight lang="vlang"> |
<syntaxhighlight lang="v (vlang)"> |
||
const text = "Given\$a\$text\$file\$of\$many\$lines,\$where\$fields\$within\$a\$line\$ |
const text = "Given\$a\$text\$file\$of\$many\$lines,\$where\$fields\$within\$a\$line\$ |
||
are\$delineated\$by\$a\$single\$'dollar'\$character,\$write\$a\$program |
are\$delineated\$by\$a\$single\$'dollar'\$character,\$write\$a\$program |