code: func compile(x string) string {
  	if x == "" {
  		return ""
  	}
  
  	input := bytes.NewBufferString(x)
  	output := bytes.NewBufferString("")
  
  	for {
  		i, _, err := input.ReadRune()
  		if err != nil {
  			break
  		}
  		switch i {
  		default:
  			output.WriteRune(i)
  		case EscapeChar:
  			compileColorSyntax(input, output)
  		}
  	}
  	return output.String()
  }
docs: // Compile the string and replace color syntax with concrete escape code.