diff --git a/cmd/root.go b/cmd/root.go index 683834a..0959f95 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,7 +12,7 @@ import ( ) const ( - ReleaseVersion string = "3.0.1" + ReleaseVersion string = "3.0.2" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 4affb4f..364218b 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -434,7 +434,7 @@ func ServePage(args []string) error { formats := make(types.Types) if Audio || All { - formats.Add(audio.Format{Fun: Fun}) + formats.Add(audio.Format{}) } if Code || All { @@ -442,15 +442,15 @@ func ServePage(args []string) error { } if Flash || All { - formats.Add(flash.Format{Fun: Fun}) + formats.Add(flash.Format{}) } if Text || All { - formats.Add(text.Format{Fun: Fun}) + formats.Add(text.Format{}) } if Videos || All { - formats.Add(video.Format{Fun: Fun}) + formats.Add(video.Format{}) } // enable image support if no other flags are passed, to retain backwards compatibility diff --git a/types/audio/audio.go b/types/audio/audio.go index 0273c51..93b39f8 100644 --- a/types/audio/audio.go +++ b/types/audio/audio.go @@ -11,9 +11,7 @@ import ( "seedno.de/seednode/roulette/types" ) -type Format struct { - Fun bool -} +type Format struct {} func (t Format) Css() string { var css strings.Builder diff --git a/types/flash/flash.go b/types/flash/flash.go index c028e21..d2562b3 100644 --- a/types/flash/flash.go +++ b/types/flash/flash.go @@ -11,9 +11,7 @@ import ( "seedno.de/seednode/roulette/types" ) -type Format struct { - Fun bool -} +type Format struct {} func (t Format) Css() string { var css strings.Builder diff --git a/types/text/text.go b/types/text/text.go index 3c6a993..81d668c 100644 --- a/types/text/text.go +++ b/types/text/text.go @@ -14,9 +14,7 @@ import ( "seedno.de/seednode/roulette/types" ) -type Format struct { - Fun bool -} +type Format struct {} func (t Format) Css() string { var css strings.Builder diff --git a/types/video/video.go b/types/video/video.go index fc3874c..e6e7129 100644 --- a/types/video/video.go +++ b/types/video/video.go @@ -12,9 +12,7 @@ import ( "seedno.de/seednode/roulette/types" ) -type Format struct { - Fun bool -} +type Format struct {} func (t Format) Css() string { var css strings.Builder