We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 438e4be commit 6d7d72dCopy full SHA for 6d7d72d
projects/output-and-error-handling/server/main.go
@@ -16,9 +16,9 @@ func main() {
16
switch randomNumber {
17
// 50% of the time, we just report the weather. 30% nice, 20% less so.
18
case 0, 1, 2:
19
- w.Write([]byte("Today it will be sunny!\n"))
+ w.Write([]byte("Today it will be sunny!"))
20
case 3, 4:
21
- w.Write([]byte("I'd bring an umbrella, just in case...\n"))
+ w.Write([]byte("I'd bring an umbrella, just in case..."))
22
// 30% of the time, we say we're too busy and say try again in a few seconds, in a few different ways.
23
case 5:
24
// Generate a random number between 1 and 10, for the number of seconds to tell the client to wait before retrying:
0 commit comments