mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-24 17:42:15 -08:00
12 lines
196 B
Go
12 lines
196 B
Go
|
package template
|
||
|
|
||
|
import "path/filepath"
|
||
|
|
||
|
func glob(pattern string) (bool, error) {
|
||
|
matches, err := filepath.Glob(pattern)
|
||
|
if err != nil {
|
||
|
return false, err
|
||
|
}
|
||
|
return len(matches) > 0, nil
|
||
|
}
|