/* Copyright © 2023 Seednode */ package formats import ( "fmt" "strings" ) func RegisterFlashFormats() *SupportedFormat { return &SupportedFormat{ Css: ``, Title: func(queryParams, fileUri, filePath, fileName, mime string) string { return fmt.Sprintf(`%s`, fileName) }, Body: func(queryParams, fileUri, filePath, fileName, mime string) string { var html strings.Builder html.WriteString(fmt.Sprintf(``, fileUri)) html.WriteString(fmt.Sprintf(`
`, queryParams)) return html.String() }, Extensions: []string{ `.swf`, }, MimeTypes: []string{ `application/x-shockwave-flash`, }, Validate: func(filePath string) bool { return true }, } }