mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
Update README example
This commit is contained in:
@@ -55,12 +55,11 @@ func helloWorld() {
|
||||
fmt.Println("Hello world")
|
||||
}`
|
||||
|
||||
result, err := ansi.Colorize(inputString, "go")
|
||||
result, err := ansi.Colorize(inputString, "go", 171)
|
||||
if err != nil {
|
||||
fmt.Println("Failed to colorize input: " + err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user