libgo: use Windows line endings in testwinsignal

This commit is contained in:
Ian Lance Taylor 2021-05-18 18:28:17 -07:00
parent 01b2864757
commit 39ed6a88c7

View File

@ -1,19 +1,19 @@
package main
import (
"fmt"
"os"
"os/signal"
"time"
)
func main() {
c := make(chan os.Signal, 1)
signal.Notify(c)
fmt.Println("ready")
sig := <-c
time.Sleep(time.Second)
fmt.Println(sig)
}
package main
import (
"fmt"
"os"
"os/signal"
"time"
)
func main() {
c := make(chan os.Signal, 1)
signal.Notify(c)
fmt.Println("ready")
sig := <-c
time.Sleep(time.Second)
fmt.Println(sig)
}