Skip to content

Commit 08ea615

Browse files
authored
Update README.md
1 parent aad232d commit 08ea615

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,21 +257,19 @@ Hello Someusername
257257
```
258258

259259

260-
### Output with Color and Bold letters
261-
If you want to change the output such as coloring and bold letters, you can do as follows(example is using [fatih/color](https://github.com/fatih/color)).
260+
### Output with Color
261+
You can use [fatih/color](https://github.com/fatih/color).
262262

263263
```go
264264
func(c *ishell.Context) {
265265
yellow := color.New(color.FgYellow).SprintFunc()
266-
c.Println(yellow("yellow"))
266+
c.Println(yellow("This line is yellow"))
267267
}
268268
```
269269
Execution
270-
```bash
270+
```sh
271271
>>> color
272-
cyan
273-
yellow
274-
bold red
272+
This line is yellow
275273
```
276274

277275

0 commit comments

Comments
 (0)