github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/utils/which/path.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package which
     5  
     6  import "strings"
     7  
     8  // SplitPath takes a $PATH (or similar) string and splits it into an array of paths
     9  func SplitPath(envPath string) []string {
    10  	split := strings.Split(envPath, ":")
    11  	return split
    12  }