@@ -87,7 +87,7 @@ func ExampleListInstalledPacks_list() {
8787 _ = installer .ReadIndexFiles ()
8888 defer removePackRoot (localTestingDir )
8989
90- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
90+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
9191 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
9292 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
9393 Vendor : "TheVendor" ,
@@ -125,7 +125,7 @@ func ExampleListInstalledPacks_listCached() {
125125 _ = installer .ReadIndexFiles ()
126126 defer removePackRoot (localTestingDir )
127127
128- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
128+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
129129 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
130130 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
131131 Vendor : "TheVendor" ,
@@ -165,7 +165,7 @@ func TestListInstalledPacks(t *testing.T) {
165165 assert .Nil (installer .ReadIndexFiles ())
166166 defer removePackRoot (localTestingDir )
167167
168- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
168+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
169169 assert .Nil (utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" )))
170170 assert .Nil (installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
171171 Vendor : "TheVendor" ,
@@ -251,7 +251,7 @@ func ExampleListInstalledPacks_listMalformedInstalledPacks() {
251251 _ = installer .ReadIndexFiles ()
252252 defer removePackRoot (localTestingDir )
253253
254- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
254+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
255255 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
256256 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
257257 Vendor : "TheVendor" ,
@@ -290,7 +290,7 @@ func ExampleListInstalledPacks_filter() {
290290 _ = installer .ReadIndexFiles ()
291291 defer removePackRoot (localTestingDir )
292292
293- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
293+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
294294 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
295295 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
296296 Vendor : "TheVendor" ,
@@ -326,7 +326,7 @@ func ExampleListInstalledPacks_filterErrorPackages() {
326326 _ = installer .ReadIndexFiles ()
327327 defer removePackRoot (localTestingDir )
328328
329- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
329+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
330330 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
331331 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
332332 Vendor : "TheVendor" ,
@@ -364,7 +364,7 @@ func ExampleListInstalledPacks_filterInvalidChars() {
364364 _ = installer .ReadIndexFiles ()
365365 defer removePackRoot (localTestingDir )
366366
367- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
367+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
368368 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
369369 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
370370 Vendor : "TheVendor" ,
@@ -399,7 +399,7 @@ func ExampleListInstalledPacks_filteradditionalMessages() {
399399 _ = installer .ReadIndexFiles ()
400400 defer removePackRoot (localTestingDir )
401401
402- pdscFilePath := strings .Replace (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" , - 1 )
402+ pdscFilePath := strings .ReplaceAll (publicLocalPack123 , ".1.2.3.pack" , ".pdsc" )
403403 _ = utils .CopyFile (pdscFilePath , filepath .Join (installer .Installation .WebDir , "TheVendor.PublicLocalPack.pdsc" ))
404404 _ = installer .Installation .PublicIndexXML .AddPdsc (xml.PdscTag {
405405 Vendor : "TheVendor" ,
0 commit comments