Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 514 Bytes

vlang.md

File metadata and controls

49 lines (34 loc) · 514 Bytes

vlang

Adiciona link:

sudo ./v symlink

Remove link:

unlink v

Executa:

v run hello.v

Hot-reload:

v watch run hello.v

Vigia:

v watch hello.v

Compila:

v hello.v
./hello

Write a file:

import os

filename := './file.txt'
os.create(filename) or { panic('error create $filename') }
print(os.read_file(filename) or { panic('error read $filename') }
os.rwite_file(filename, 'Simple text') or { panic('error write $filename') }