// parse returns the presenter.format specified by the given user input.
parse returns the presenter.format specified by the given user input.
// parse returns the presenter . format specified by the given user input .
func parse(userInput string) format {
	switch strings.ToLower(userInput) {
	case "":
		return tableFormat
	case strings.ToLower(jsonFormat.String()):
		return jsonFormat
	case strings.ToLower(tableFormat.String()):
		return tableFormat
	case strings.ToLower(cycloneDXFormat.String()):
		return cycloneDXFormat
	case strings.ToLower(sarifFormat.String()):
		return sarifFormat
	case strings.ToLower(templateFormat.String()):
		return templateFormat
	case strings.ToLower(embeddedVEXJSON.String()):
		return embeddedVEXJSON
	case strings.ToLower(embeddedVEXXML.String()):
		return embeddedVEXXML
	default:
		return unknownFormat
	}
}
func parse ( userInput string ) format { switch strings . ToLower ( userInput ) { case " " : return tableFormat case strings . ToLower ( jsonFormat . String ( ) ) : return jsonFormat case strings . ToLower ( tableFormat . String ( ) ) : return tableFormat case strings . ToLower ( cycloneDXFormat . String ( ) ) : return cycloneDXFormat case strings . ToLower ( sarifFormat . String ( ) ) : return sarifFormat case strings . ToLower ( templateFormat . String ( ) ) : return templateFormat case strings . ToLower ( embeddedVEXJSON . String ( ) ) : return embeddedVEXJSON case strings . ToLower ( embeddedVEXXML . String ( ) ) : return embeddedVEXXML default : return unknownFormat } }
parse returns the presenter.format specified by the given user input.
parse returns the presenter . format specified by the given user input .