mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
Implement getting color code for languages
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user