mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-10-26 19:49:56 -04:00
Update README example
This commit is contained in:
1 parent
7e2b926431
commit
4d95a5c7c2
1 file changed
+1
-2
@@ -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