Debian Codegraph @

ansi/ansi.go

raw
1 package ansi
2
3 import "io"
4
5 // Execute is a function that "execute" the given escape sequence by writing it
6 // to the provided output writter.
7 //
8 // This is a syntactic sugar over [io.WriteString].
9 func Execute(w io.Writer, s string) (int, error) {
10 return io.WriteString(w, s) //nolint:wrapcheck
11 }