v/examples
2024-07-03 22:17:46 +03:00
..
2048 time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
assets term: add functions for detecting Sixel support + example (#21665) 2024-06-11 19:59:58 +03:00
call_c_from_v pref: fix unintended file extensions in default output names, allow for v run file.c.v (#19745) 2023-11-03 19:51:44 +02:00
call_v_from_c all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
call_v_from_python examples: show how to create and pass a V string to a V function, and then get back a V string in Python 2024-06-03 19:26:30 +03:00
call_v_from_ruby examples: fix "call v from ruby" example for Windows and Mac (#20487) 2024-01-12 15:59:09 +02:00
clock all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
compiletime examples: add compiletime/d_compile_value.v (#21738) 2024-06-26 17:08:08 +03:00
concurrency vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
coroutines coroutines: use photon work_pool when nr_jobs > 0, and use photon libc fn wrappers (#19711) 2023-10-31 20:12:52 +03:00
database all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
dynamic_library_loader cgen, dl: add windows dll support, fix (#20447) (#20459) 2024-01-10 10:59:52 +02:00
dynamic_library_loading all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
eventbus all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
fireworks cgen: remove the need for [console] for gg or ui programs on windows (#15912) 2022-09-29 15:02:50 +03:00
flappylearning examples: fix warnings about 0 assignments to reference fields (#21133) 2024-03-29 10:35:37 +02:00
game_of_life examples: fix warnings about 0 assignments to reference fields (#21133) 2024-03-29 10:35:37 +02:00
get_weather all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
gg examples: add gg/fire.v (#21784) 2024-07-02 11:04:00 +03:00
graphs fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
hot_reload examples: fix warnings about 0 assignments to reference fields (#21133) 2024-03-29 10:35:37 +02:00
js_dom_cube ci: run VAUTOFIX=1 ./v check-md -hide-warnings . to fix doc failures 2023-11-25 09:34:46 +02:00
js_dom_draw ci: run VAUTOFIX=1 ./v check-md -hide-warnings . to fix doc failures 2023-11-25 09:34:46 +02:00
js_dom_draw_benchmark_chart examples: fix path in js_dom_draw_benchmark example docs (#20780) 2024-02-11 12:35:45 +02:00
linear_regression .gitignore: ignore all binary files by default 2020-04-29 16:49:13 +02:00
macos_tray all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
native native: implement for-c and for-in range loops (#12155) 2021-11-30 11:49:30 +02:00
password all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
pendulum-simulation breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
pico picoev, x.vweb: small fixes and backport changes from vweb (#20584) 2024-01-23 18:34:22 +02:00
process examples: cleanup process/execve.v (#21557) 2024-05-24 11:01:01 +03:00
quadtree_demo builtin: str.last_index(); pref: hide-auto-str; 2024-03-28 18:26:30 +03:00
readline all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
regex examples: fix v -N examples/regex/regex_example.v 2024-05-01 14:48:55 +03:00
smtp examples: fix unset reader notice for the smtp/mail example (#17998) 2023-05-02 22:54:57 +03:00
snek examples: add interpolated movement and input queue to snek/snek.v (#21798) 2024-07-03 22:17:46 +03:00
sokol breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
ssl_server net.mbedtls: add SSLListener to allow creating SSL servers (#19022) 2023-08-01 20:45:50 +03:00
submodule v.utils: fix module lookup if module import parts end with the word modules (#21083) 2024-03-24 20:22:16 +02:00
templates examples: fix typos (#18229) 2023-05-25 16:54:46 +03:00
term.ui all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
tetris all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
ttf_font examples: fix warnings about 0 assignments to reference fields (#21133) 2024-03-29 10:35:37 +02:00
vcasino vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
viewer vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
vwatch db.sqlite: make functions return results, breaking change (#19093) 2023-08-10 05:39:32 +03:00
vweb veb: copy x.vweb to veb, and make it work with comptime 2024-04-24 19:23:19 +03:00
vweb_fullstack examples: check array length before access (#21641) 2024-06-04 18:38:06 +03:00
vweb_orm_jwt all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
wasm examples: add examples/wasm/change_color_by_id/ (#20519) 2024-01-14 13:34:23 +02:00
wasm_codegen examples: fix brainvuck.v (handle [ and ] properly); allow both brainvuck.v wasm_codegen/bf_compiler.v to work with .b files too 2023-10-03 17:01:55 +03:00
web_crawler net.html: fix semantic inconsistencies of tag retrieving functions (#18558) 2023-06-27 20:10:31 +03:00
websocket net.websocket: make thread safe/concurrent (#18179) 2023-05-18 11:27:00 +02:00
word_counter all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
xvweb vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
.gitignore log: improve logging interface (#12886) 2021-12-18 12:38:43 +02:00
asm.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
binary_search_tree.v examples: fix typos (#18229) 2023-05-25 16:54:46 +03:00
brainvuck.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
bst_map.v all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
buf_reader.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
c_interop_wkhtmltopdf.v fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
cli.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
control_thread_stack_size.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
custom_error.v examples: add custom_error.v, that shows how to match over possible errors (#16265) 2022-10-31 09:56:41 +02:00
dump_factorial.v v: support dump(expr) (#9160) 2021-03-06 18:09:28 +01:00
errors.v semver: add custom errors (#9493) 2021-03-29 11:17:00 +02:00
fetch.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
fetch_ip.v examples: add examples/fetch_ip.v, showing how to contact http://ifconfig.co/json and parse the result 2023-09-06 12:24:01 +03:00
fibonacci.v docs: document more builtin functions/methods (#14229) 2022-04-30 12:31:23 +03:00
file_list.v examples: add web_crawler and get_weather (#10084) 2021-05-14 11:09:21 +03:00
fizz_buzz.v examples: cleanup examples/fizz_buzz.v 2024-01-27 19:19:20 +02:00
function_types.v doc: document type Fn = fn (string) string (type aliases) (#10471) 2021-06-22 12:39:57 +03:00
hanoi.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
hello_v_js.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
hello_world.v examples: reorganize 2020-03-21 09:47:38 +01:00
http_server.v all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
json.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
lander.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
links_scraper.v http: refactor and reduce duplication 2020-01-16 18:16:11 +01:00
log.v log: improve the most common use case (#19242) 2023-08-31 06:44:11 +03:00
logfatal.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
mini_calculator.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
nbody.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
net_failconnect.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
net_peer_ip.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
net_raw_http.v all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
net_resolve.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
net_t.v fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
net_udp_server_and_client.v examples: fix net_udp_server_and_client.v with latest V and latest net module (listen on 0.0.0.0, and dial to 127.0.0.1) (#19564) 2023-10-14 17:08:26 +03:00
news_fetcher.v examples: limit news_fetcher.v 2024-05-23 21:30:41 +03:00
path_tracing.v all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
pidigits.v examples: add pidigits.v; optimise math.big's Integer divide a bit (#21239) 2024-04-09 17:01:05 +03:00
quick_sort.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
random_ips.v db, json, time, term: change optional to result (#16201) 2022-10-26 11:26:28 +03:00
readdir.v os: document os.ls (using readdir), add example (#20622) 2024-01-21 20:45:19 +02:00
rule110.v rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
rune.v add str function for rune 2019-07-01 17:36:23 +02:00
spectral.v fmt: remove unnecessary parentheses after return (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
tcp_echo_server.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
tcp_notify_echo_server.v checker: check if guard returning non-propagate option or result (fix #17742) (#17794) 2023-03-29 14:51:29 +03:00
term_display_sixel.v term: add functions for detecting Sixel support + example (#21665) 2024-06-11 19:59:58 +03:00
terminal_control.v vfmt: vfmt examples/*.v 2021-02-23 20:21:50 +02:00
toml.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
tree_of_nodes.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
v_script.vsh ci: more ? -> ! fixes 2022-10-16 22:57:38 +03:00
vmod.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
vpwgen.v all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
vtail.v examples: add vtail.v, deprecate File.read_bytes_into_newline/1 in favor of File.read_bytes_with_newline/1 (#21182) 2024-04-04 11:09:06 +03:00