diff --git a/client/zfsabstractions.go b/client/zfsabstractions.go index cda3f46..c747286 100644 --- a/client/zfsabstractions.go +++ b/client/zfsabstractions.go @@ -57,7 +57,7 @@ func (f *zabsFilterFlags) registerZabsFilterFlags(s *pflag.FlagSet, verb string) for v := range endpoint.AbstractionTypesAll { variants = append(variants, string(v)) } - variants = sort.StringSlice(variants) + sort.Strings(variants) variantsJoined := strings.Join(variants, "|") s.Var(&f.Types, "type", fmt.Sprintf("only %s holds of the specified type [default: all] [comma-separated list of %s]", verb, variantsJoined)) diff --git a/endpoint/endpoint_zfs_abstraction.go b/endpoint/endpoint_zfs_abstraction.go index c8682bb..a3a6981 100644 --- a/endpoint/endpoint_zfs_abstraction.go +++ b/endpoint/endpoint_zfs_abstraction.go @@ -168,7 +168,7 @@ func (s AbstractionTypeSet) String() string { for i := range s { sts = append(sts, string(i)) } - sts = sort.StringSlice(sts) + sort.Strings(sts) return strings.Join(sts, ",") }