diff --git a/cmd/root.go b/cmd/root.go
index 372ca78..c88d058 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -12,7 +12,7 @@ import (
)
const (
- ReleaseVersion string = "0.70.1"
+ ReleaseVersion string = "0.70.2"
)
var (
diff --git a/formats/audio.go b/formats/audio.go
index 9179855..50d3401 100644
--- a/formats/audio.go
+++ b/formats/audio.go
@@ -10,7 +10,6 @@ import (
func RegisterAudioFormats() *SupportedFormat {
return &SupportedFormat{
- Name: "audio",
Css: ``,
Title: func(queryParams, fileUri, filePath, fileName, mime string) string {
return fmt.Sprintf(`
%s`, fileName)
diff --git a/formats/flash.go b/formats/flash.go
index 7a1a03c..5bd93d3 100644
--- a/formats/flash.go
+++ b/formats/flash.go
@@ -11,7 +11,6 @@ import (
func RegisterFlashFormats() *SupportedFormat {
return &SupportedFormat{
- Name: `flash`,
Css: ``,
Title: func(queryParams, fileUri, filePath, fileName, mime string) string {
return fmt.Sprintf(`%s`, fileName)
diff --git a/formats/images.go b/formats/images.go
index 42856e7..5f6d968 100644
--- a/formats/images.go
+++ b/formats/images.go
@@ -24,7 +24,6 @@ type Dimensions struct {
func RegisterImageFormats() *SupportedFormat {
return &SupportedFormat{
- Name: "images",
Css: ``,
Title: func(queryParams, fileUri, filePath, fileName, mime string) string {
dimensions, err := ImageDimensions(filePath)
diff --git a/formats/text.go b/formats/text.go
index 269bf3a..52a6ca7 100644
--- a/formats/text.go
+++ b/formats/text.go
@@ -13,8 +13,7 @@ import (
func RegisterTextFormats() *SupportedFormat {
return &SupportedFormat{
- Name: "text",
- Css: `pre{margin:.5rem;}`,
+ Css: `pre{margin:.5rem;}`,
Title: func(queryParams, fileUri, filePath, fileName, mime string) string {
return fmt.Sprintf(`%s`, fileName)
},
diff --git a/formats/types.go b/formats/types.go
index efebf35..41b45ba 100644
--- a/formats/types.go
+++ b/formats/types.go
@@ -12,7 +12,6 @@ import (
)
type SupportedFormat struct {
- Name string
Css string
Title func(queryParams, fileUri, filePath, fileName, mime string) string
Body func(queryParams, fileUri, filePath, fileName, mime string) string
@@ -21,8 +20,6 @@ type SupportedFormat struct {
Validate func(filePath string) bool
}
-// func (s *SupportedFormat) ListExtensions() []string
-
type SupportedFormats struct {
Extensions map[string]*SupportedFormat
MimeTypes map[string]*SupportedFormat
diff --git a/formats/video.go b/formats/video.go
index e4a3f91..ccd718a 100644
--- a/formats/video.go
+++ b/formats/video.go
@@ -10,8 +10,7 @@ import (
func RegisterVideoFormats() *SupportedFormat {
return &SupportedFormat{
- Name: "video",
- Css: ``,
+ Css: ``,
Title: func(queryParams, fileUri, filePath, fileName, mime string) string {
return fmt.Sprintf(`%s`, fileName)
},