Refactoring, Bugfix & Updates
+ Refactored all imports + Fixed a bug for the logging regarding removing \n \t \r + Updated to current MGO release + Changed the name of ICCC
This commit is contained in:
1 parent
b50066ef5d
commit
f33f7b5c29
91 files changed
+496
-316
No files matched your search
+11
-9
@@ -1,14 +1,16 @@
|
||||
package Templates
|
||||
|
||||
import "fmt"
|
||||
import "bytes"
|
||||
import "html/template"
|
||||
import "io/ioutil"
|
||||
import "archive/zip"
|
||||
import "github.com/SommerEngineering/Ocean/CustomerDB"
|
||||
import "github.com/SommerEngineering/Ocean/Tools"
|
||||
import "github.com/SommerEngineering/Ocean/Log"
|
||||
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
import (
|
||||
"archive/zip"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/SommerEngineering/Ocean/CustomerDB"
|
||||
"github.com/SommerEngineering/Ocean/Log"
|
||||
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
"github.com/SommerEngineering/Ocean/Tools"
|
||||
"html/template"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
func init() {
|
||||
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `Starting the template engine.`)
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package Templates
|
||||
|
||||
import "net/http"
|
||||
import "github.com/SommerEngineering/Ocean/MimeTypes"
|
||||
import "github.com/SommerEngineering/Ocean/Log"
|
||||
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
import (
|
||||
"github.com/SommerEngineering/Ocean/Log"
|
||||
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
"github.com/SommerEngineering/Ocean/MimeTypes"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func ProcessHTML(templateName string, response http.ResponseWriter, data interface{}) {
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package Templates
|
||||
|
||||
import "html/template"
|
||||
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
import (
|
||||
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
"html/template"
|
||||
)
|
||||
|
||||
var (
|
||||
templates *template.Template = nil
|
||||
|
||||
Reference in new issue
Block a user