ansi.go 279 B

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