commit e1d9f17a0c592f70340c653cf44a981f6655d5e8
parent 164f2465e1bb192d90abecb04e5f60528f7c5e1b
Author: root <root@lucy.lt>
Date: Sun, 3 Oct 2021 14:18:10 +0300
Added printing of requested usernames
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/main.go b/main.go
@@ -38,12 +38,13 @@ func main() {
if err != nil {
text = "ERR!\nNo such user!"
} else {
- text = "OK!\n" + string(b)
+ text = "OK.\n" + string(b)
}
}
w.Write([]byte(fmt.Sprintln(text)))
+ fmt.Printf("Requested username: %s\n", q.Username)
}))
- fmt.Print("Press 'Enter' to exit...")
+ fmt.Print("Press 'Enter' to exit...\n")
bufio.NewReader(os.Stdin).ReadBytes('\n')
}