mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59:42 +02:00
removed embed init() for unit testing
This commit is contained in:
parent
a982af6e79
commit
dba57a15a8
4 changed files with 21 additions and 7 deletions
|
@ -17,7 +17,6 @@ package embed
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/documize/community/server/web"
|
||||
assetfs "github.com/elazarl/go-bindata-assetfs"
|
||||
)
|
||||
|
||||
|
@ -38,6 +37,12 @@ func (embedderT) StaticAssetsFileSystem() http.FileSystem {
|
|||
|
||||
var embedder embedderT
|
||||
|
||||
func init() {
|
||||
web.Embed = embedder
|
||||
// NewEmbedder returns embed assets handler instance
|
||||
func NewEmbedder() embedderT {
|
||||
return embedder
|
||||
}
|
||||
|
||||
// func init() {
|
||||
// fmt.Println("firing embed init()")
|
||||
// web.Embed = embedder
|
||||
// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue