Skip to content

Commit

Permalink
refactor: adjust interface for file system
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Feb 27, 2024
1 parent 6fc7cb2 commit 0fd7cd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions middleware/static_embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ type embedStaticFS struct {
FS embed.FS
}

var _ StaticFile = (*embedStaticFS)(nil)

// NewEmbedStaticFS returns a new embed static fs
func NewEmbedStaticFS(fs embed.FS, prefix string) *embedStaticFS {
return &embedStaticFS{
Expand Down Expand Up @@ -109,6 +111,8 @@ type tarFS struct {
File string
}

var _ StaticFile = (*tarFS)(nil)

// NewTarFS returns a new tar static fs
func NewTarFS(file string, prefix string) *tarFS {
return &tarFS{
Expand Down

0 comments on commit 0fd7cd5

Please sign in to comment.