From: Rob Pike os
package
will fail to compile and will also need to be updated by hand.
+The os/signal
package in Go 1 replaces the
+Incoming
function, which returned a channel
+that received all incoming signals,
+with the selective Notify
function, which asks
+for delivery of specific signals on an existing channel.
+
+Updating: +Code must be updated by hand. +A literal translation of +
++c := signal.Incoming() ++
+is +
++c := make(chan os.Signal) +signal.Notify(c) // ask for all signals ++
+but most code should list the specific signals it wants to handle instead: +
++c := make(chan os.Signal) +signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT) ++
@@ -1747,38 +1780,19 @@ will need to be updated by hand. The compiler will catch code using the old interface.
-
-The os/signal
package in Go 1 replaces the
-Incoming
function, which returned a channel
-that received all incoming signals,
-with the selective Notify
function, which asks
-for delivery of specific signals on an existing channel.
+The regexp
package has been rewritten.
+It has the same interface but the specification of the regular expressions
+it supports has changed from the old "egrep" form to that of
+RE2.
Updating: -Code must be updated by hand. -A literal translation of +Code that uses the package should have its regular expressions checked by hand.
--c := signal.Incoming() --
-is -
--c := make(chan os.Signal) -signal.Notify(c) // ask for all signals --
-but most code should list the specific signals it wants to handle instead: -
--c := make(chan os.Signal) -signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT) -
os
package
will fail to compile and will also need to be updated by hand.
+
+The os/signal
package in Go 1 replaces the
+Incoming
function, which returned a channel
+that received all incoming signals,
+with the selective Notify
function, which asks
+for delivery of specific signals on an existing channel.
+
+Updating: +Code must be updated by hand. +A literal translation of +
++c := signal.Incoming() ++
+is +
++c := make(chan os.Signal) +signal.Notify(c) // ask for all signals ++
+but most code should list the specific signals it wants to handle instead: +
++c := make(chan os.Signal) +signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT) ++
@@ -1632,38 +1665,19 @@ will need to be updated by hand. The compiler will catch code using the old interface.
-
-The os/signal
package in Go 1 replaces the
-Incoming
function, which returned a channel
-that received all incoming signals,
-with the selective Notify
function, which asks
-for delivery of specific signals on an existing channel.
+The regexp
package has been rewritten.
+It has the same interface but the specification of the regular expressions
+it supports has changed from the old "egrep" form to that of
+RE2.
Updating: -Code must be updated by hand. -A literal translation of +Code that uses the package should have its regular expressions checked by hand.
--c := signal.Incoming() --
-is -
--c := make(chan os.Signal) -signal.Notify(c) // ask for all signals --
-but most code should list the specific signals it wants to handle instead: -
--c := make(chan os.Signal) -signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT) -