v-lang is a historical programming language created in 2018.

1Years Old 5Users 0Jobs
  • v-lang ranks in the bottom 50% of languages
  • the v-lang website
  • v-lang first appeared in 2018
  • I have 5 facts about v-lang. just email me if you need more.

Example code from the web:

package main

import ui 

type Context struct {
    input ui.TextBox
}

fn main() {
    wnd := ui.new_window(ui.WindowCfg{
        width: 600 
        height: 300 
        title: 'hello world' 
    }) 
    ctx := Context{
        input: ui.new_textbox(wnd) 
    }
    ctx.input.set_placeholder('Enter your name')
    btn := ui.new_button(wnd, 'Click me', ctx.btn_click)
    for {
        ui.wait_events()
    }
}

fn (ctx mut Context) btn_click() { 
    name := ctx.input.text()
    ctx.input.hide()
    ui.alert('Hello, $name!')
}
Edit

Last updated February 11th, 2019