code: func (fp *formatParser) setAnsiColor(name string) error {
  	// If colors are not enabled then do not add strings in this function.
  	if fp.color == false {
  		return nil
  	}
  	if ansi, ok := ioOutputColorMap[name]; ok {
  		fp.addStatic(ansi)
  		return nil
  	} else if name == "class" {
  		// 10 bytes is a sane upper bound.
  		fp.addFormatFunc(ioOutputFormatClassColor, 10)
  		return nil
  	}
  	return fmt.Errorf("Unknown color name: %s", name)
  }
docs: // Adds a static string with the given ANSI color code.