code: func NewFormat(source string) formatter.Format {
  	switch source {
  	case formatter.PrettyFormatKey:
  		return serviceInspectPrettyTemplate
  	default:
  		return formatter.Format(strings.TrimPrefix(source, formatter.RawFormatKey))
  	}
  }
docs: // NewFormat returns a Format for rendering using a Context