A package for assertions without dependency hell
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
260 B

  1. package assert
  2. import (
  3. "fmt"
  4. "strconv"
  5. )
  6. func prepMsg(msg []interface{}, format string, args ...interface{}) []interface{} {
  7. return append(msg, "\n\n", fmt.Sprintf(format, args...))
  8. }
  9. func shell(i int) string {
  10. return "\x1B[" + strconv.Itoa(i) + "m"
  11. }