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