remove useless 'Server.err'
This commit is contained in:
parent
93e1343dc4
commit
d7bc5a6685
|
@ -3,7 +3,6 @@ package gfw
|
||||||
import (
|
import (
|
||||||
"git.xdrm.io/xdrm-brackets/gfw/checker"
|
"git.xdrm.io/xdrm-brackets/gfw/checker"
|
||||||
"git.xdrm.io/xdrm-brackets/gfw/config"
|
"git.xdrm.io/xdrm-brackets/gfw/config"
|
||||||
"git.xdrm.io/xdrm-brackets/gfw/err"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Init initilises a new framework instance
|
// Init initilises a new framework instance
|
||||||
|
@ -19,7 +18,6 @@ func Init(path string, typeChecker *checker.TypeRegistry) (*Server, error) {
|
||||||
inst := &Server{
|
inst := &Server{
|
||||||
config: nil,
|
config: nil,
|
||||||
Params: make(map[string]interface{}),
|
Params: make(map[string]interface{}),
|
||||||
err: err.Success,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (2) Load configuration */
|
/* (2) Load configuration */
|
||||||
|
|
2
types.go
2
types.go
|
@ -3,12 +3,10 @@ package gfw
|
||||||
import (
|
import (
|
||||||
"git.xdrm.io/xdrm-brackets/gfw/checker"
|
"git.xdrm.io/xdrm-brackets/gfw/checker"
|
||||||
"git.xdrm.io/xdrm-brackets/gfw/config"
|
"git.xdrm.io/xdrm-brackets/gfw/config"
|
||||||
"git.xdrm.io/xdrm-brackets/gfw/err"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
config *config.Controller
|
config *config.Controller
|
||||||
Params map[string]interface{}
|
Params map[string]interface{}
|
||||||
Checker *checker.TypeRegistry // type check
|
Checker *checker.TypeRegistry // type check
|
||||||
err err.Error
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue