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 还没有评估数据。