Simple Switching in V-Lang

March 26, 2022 ยท View on GitHub

So I read about V and had to try it out for myself. This here is the result of that trial.

Compilation

v main.v

Usage

./main FUNCTION_NAME [OPTIONAL_ARG]
- FUNCTION_NAME: name of a function defined in a _switch_ statemtent
- OPTIONAL_ARG: an optional arg to pass to one of those functions

Ex: About Application

./main about

Ex: Frame Text

./main frame "test text"