Print doesn't display text if string doesn't end with '\n'
Abierto
- Lenguaje dominante
- Go
- Estrellas
- 1.8k
- Forks
- 213
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
`fmt.Printf` doesn't work when there is no new-line character at the end of the string.
```go
// This works fine
shell.AddCmd(&ishell.Cmd{
Name: "hello",
Func: func(c *ishell.Context) {
fmt.Printf("Hello\n")
},
})
// This does not
shell.AddCmd(&ishell.Cmd{
Name: "hello",
Func: func(c *ishell.Context) {
fmt.Printf("Hello")
},
})
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.