code: func Colorize(x string) string {
  	attr := 0
  	fg := 39
  	bg := 49
  
  	for _, key := range x {
  		c, ok := codeMap[int(key)]
  		switch {
  		case !ok:
  			log.Printf("Wrong color syntax: %c", key)
  		case 0 <= c && c <= 8:
  			attr = c
  		case 30 <= c && c <= 37:
  			fg = c
  		case 40 <= c && c <= 47:
  			bg = c
  		case c == 60:
  			fg += c
  		}
  	}
  	return fmt.Sprintf("\033[%d;%d;%dm", attr, fg, bg)
  }
docs: // Compile color syntax string like "rG" to escape code.