[BACK]Return to util.go CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint / files

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/pkgtools/pkglint/files/Attic/util.go between version 1.54 and 1.55

version 1.54, 2019/10/26 09:51:48 version 1.55, 2019/10/26 11:43:36
Line 82  func containsStr(slice []string, s strin
Line 82  func containsStr(slice []string, s strin
         return false          return false
 }  }
   
   func mapStr(slice []string, fn func(s string) string) []string {
           result := make([]string, len(slice))
           for i, str := range slice {
                   result[i] = fn(str)
           }
           return result
   }
   
 // intern returns an independent copy of the given string.  // intern returns an independent copy of the given string.
 //  //
 // It should be called when only a small substring of a large string  // It should be called when only a small substring of a large string

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

CVSweb <webmaster@jp.NetBSD.org>