mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
![]()
Some checks are pending
vlib modules CI / build-module-docs (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Waiting to run
|
||
---|---|---|
.. | ||
src | ||
README.md | ||
v.mod |
hello from readme
Example:
fn is_odd(x int) bool {
if x % 2 == 0 {
return false
}
return true
}
Another example:
fn answer() string {
return '42'
}