1
0
Fork 0
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:
Harvey Kandola 2017-09-01 14:11:09 +01:00
parent a982af6e79
commit dba57a15a8
4 changed files with 21 additions and 7 deletions

View file

@ -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
// }