- Hello, Playground!
- String interpolation
- Fibonacci
- Structs and embedded structs
- Sum types
- Generics
- Concurrency
- Channel Select
- JSON Encoding/Decoding
- Filter Log file
- Compile-time Reflection
- Anonymous & higher order functions
- Testing
Looks like you are new here!
This mode allows you to translate V code to C code.
Generated C code
Right editor represent the C code
that was generated from the V code.
that was generated from the V code.
V code
Left editor represent the V code
that was translated to C code.
that was translated to C code.
Line matching
Click on a line in the V code
to see the corresponding line in the C code.
to see the corresponding line in the C code.
- code.v
15
// Welcome to the V Playground!
// Here you can edit, run, and share V code.
// Let's start with a simple "Hello, Playground!" example:
println('Hello, Playground!')
// To run the code, click the "Run" button or just press Ctrl + R.
// To format the code, click the "Format" button or just press Ctrl + L.
// More examples are available in top dropdown list.
// You can find Help for shortcuts in the bottom right corner or just press Ctrl + I.
// See also change theme button in the top right corner.
// If you want to learn more about V, visit https://vlang.io/, https://github.com/vlang/v/blob/master/doc/docs.md, and https://modules.vlang.io/
// Join us on Discord: https://discord.gg/vlang
// Enjoy!
Loading V version...
Keyboards Shortcuts
Run code
Ctrl + R
Format code
Ctrl + L
Comment lines
Ctrl + /
Change font size
Ctrl + +/-
Open/close terminal
Ctrl + T
Open/close this help
Ctrl + I
Run