fix: should use fmt.Printf instead of fmt.Print(fmt.Sprintf(...)) (#623)
This commit is contained in:
parent
b9a66248d8
commit
cec6fd4cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ func interactiveMode(agentLoop *agent.AgentLoop, sessionKey string) {
|
|||
func simpleInteractiveMode(agentLoop *agent.AgentLoop, sessionKey string) {
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
for {
|
||||
fmt.Print(fmt.Sprintf("%s You: ", logo))
|
||||
fmt.Printf("%s You: ", logo)
|
||||
line, err := reader.ReadString('\n')
|
||||
if err != nil {
|
||||
if err == io.EOF {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue