Skip to content

Commit

Permalink
Testing input
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonphillips committed Mar 18, 2020
1 parent f7c2c98 commit fed2623
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
package main

import (
"bufio"
"os"
"fmt"
)

type Log struct {
eventType string `json:"eventType"`
message string `json:"message"`
}

func main() {
app := setupCli()
app.Run(os.Args)
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter eventType: ")
inputEventType, _ := reader.ReadString('\n')
fmt.Print("Enter message: ")
inputMessage, _ := reader.ReadString('\n')

var currentLog Log;
currentLog.eventType = inputEventType
currentLog.message = inputMessage

fmt.Print("Log: ", currentLog);
}

0 comments on commit fed2623

Please sign in to comment.