Fix(stdin-handler): Scanln instead of scanf

This commit is contained in:
2022-09-10 02:24:52 +08:00
parent 76999ef4ad
commit 95ff3dabab

View File

@@ -44,7 +44,7 @@ func main() {
func handleStdIn(webhookFlag *bool, webhookURL *string) {
for {
var currStr string
_, err := fmt.Scanf("%s", &currStr)
_, err := fmt.Scanln(&currStr)
if err != nil {
return
}