Skip to content

v.util.version #

Constants #

const v_version = '0.4.6'

fn full_hash #

fn full_hash() string

fn full_v_version #

fn full_v_version(is_verbose bool) string

full_v_version() returns the full version of the V compiler

fn githash #

fn githash(path string) !string

githash tries to find the current git commit hash for the specified project path by parsing the relevant files in its .git/ folder.

fn vhash #

fn vhash() string

vhash() returns the build string C.V_COMMIT_HASH . See cmd/tools/gen_vc.v .