Skip to content

v.util.diff #

fn color_compare_files #

fn color_compare_files(diff_cmd string, path1 string, path2 string) string

color_compare_files returns a colored diff between two files.

fn color_compare_strings #

fn color_compare_strings(diff_cmd string, unique_prefix string, expected string, found string) string

color_compare_strings returns a colored diff between two strings.

fn find_working_diff_command #

fn find_working_diff_command() !string

find_working_diff_command returns the first available command from a list of known diff cli tools.