* generalize function: GetInstalledItems, GetInstalledItemsAsString * extracted function itemKey, happy path * review comments / remove redundant; rename file to remove build tags * remove unused fields in Item struct * unix build tag
10 lines
160 B
Go
10 lines
160 B
Go
//go:build unix
|
|
|
|
package cwhub
|
|
|
|
import "strings"
|
|
|
|
func hasPathSuffix(hubpath string, remotePath string) bool {
|
|
return strings.HasSuffix(hubpath, remotePath)
|
|
}
|