Go SELinux label translation client.
This package connects to and interacts with mcstransd to get SELinux label and color translations.
package main
import "github.com/jbrindle/setrans"
func main() {
conn, _ := setrans.New()
defer conn.Close()
translated, _ := conn.TransToRaw("staff_u:staff_r:staff_t:SystemLow-SystemHigh")
fmt.Println(translated) // staff_u:staff_r:staff_t:s0-s15:c0.c1023
}