Implement getting color code for languages

Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
This commit is contained in:
Lauris Bukšis-Haberkorns
2019-07-19 23:28:57 +03:00
parent 6ccf0b6bd1
commit 25b29ebdc4
12 changed files with 611 additions and 0 deletions

View File

@ -126,6 +126,11 @@ func IsVendor(path string) bool {
return enry.IsVendor(path)
}
//export GetColor
func GetColor(language string) string {
return enry.GetColor(language)
}
func strSliceCopy(result *[]*C.char, slice []string) {
for _, str := range slice {
*result = append(*result, C.CString(str))