mirror of https://github.com/perkeep/perkeep.git
Changed all references of sort.SortStrings to sort.Strings per commit 9012 of go
Change-Id: I2af1eeea05b65db10b17bc077a8af2dd5778910d
This commit is contained in:
parent
711bcfbd44
commit
d6825c9af8
|
@ -35,7 +35,7 @@ func PrintMap(m map[string]float64) {
|
|||
keys = append(keys, k)
|
||||
}
|
||||
|
||||
sort.SortStrings(keys)
|
||||
sort.Strings(keys)
|
||||
for _, k := range keys {
|
||||
if m[k] > 0 {
|
||||
fmt.Println(k, m[k])
|
||||
|
|
|
@ -122,7 +122,7 @@ func (up *Uploader) UploadFile(filename string) (*client.PutResult, os.Error) {
|
|||
return nil, err
|
||||
}
|
||||
dir.Close()
|
||||
sort.SortStrings(dirNames)
|
||||
sort.Strings(dirNames)
|
||||
// TODO: process dirName entries in parallel
|
||||
for _, dirEntName := range dirNames {
|
||||
pr, err := up.UploadFile(filename + "/" + dirEntName)
|
||||
|
|
|
@ -59,7 +59,7 @@ func readBlobs(opts readBlobRequest) os.Error {
|
|||
if err != nil {
|
||||
return &enumerateError{"localdisk: readdirnames of " + dirFullPath, err}
|
||||
}
|
||||
sort.SortStrings(names)
|
||||
sort.Strings(names)
|
||||
for _, name := range names {
|
||||
if *opts.remain == 0 {
|
||||
return nil
|
||||
|
|
|
@ -110,7 +110,7 @@ func writeCanonicalizedAmzHeaders(buf *bytes.Buffer, req *http.Request) {
|
|||
vals[lk] = vv
|
||||
}
|
||||
}
|
||||
sort.SortStrings(amzHeaders)
|
||||
sort.Strings(amzHeaders)
|
||||
for _, k := range amzHeaders {
|
||||
buf.WriteString(k)
|
||||
buf.WriteByte(':')
|
||||
|
|
|
@ -315,7 +315,7 @@ func PrintMap(m map[string]float64) {
|
|||
keys = append(keys, k)
|
||||
}
|
||||
|
||||
sort.SortStrings(keys)
|
||||
sort.Strings(keys)
|
||||
for _, k := range keys {
|
||||
if m[k] > 0 {
|
||||
fmt.Println(k, m[k])
|
||||
|
|
|
@ -82,7 +82,7 @@ func (me *TimingPathFilesystem) HotPaths(operation string) (paths []string, uniq
|
|||
results = append(results, fmt.Sprintf("% 9d %s", v, k))
|
||||
|
||||
}
|
||||
sort.SortStrings(results)
|
||||
sort.Strings(results)
|
||||
return results, len(counts)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue