Print doesn't display text if string doesn't end with '\n'
オープン
- 主要言語
- Go
- スター
- 1.8k
- フォーク
- 213
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
`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")
},
})
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。