fix: 修复typeOfSession编译错误

main
NorthLan 3 years ago
parent bac4f410ad
commit c2975beda7

@ -1,15 +1,16 @@
package component
import (
"git.noahlan.cn/northlan/ngs/session"
"reflect"
"unicode"
"unicode/utf8"
)
var (
typeOfError = reflect.TypeOf((*error)(nil)).Elem()
typeOfBytes = reflect.TypeOf(([]byte)(nil))
//typeOfSession = reflect.TypeOf(session.New(nil))
typeOfError = reflect.TypeOf((*error)(nil)).Elem()
typeOfBytes = reflect.TypeOf(([]byte)(nil))
typeOfSession = reflect.TypeOf(session.New(nil))
)
func isExported(name string) bool {

@ -19,9 +19,6 @@ import (
var running int32
// VERSION returns current ngs version
var VERSION = "0.1.0"
var (
// app represents the current server process
app = &struct {

@ -13,7 +13,7 @@ type Logger interface {
}
func init() {
SetLogger(log.New(os.Stderr, "[NGServer]", log.LstdFlags|log.Lshortfile))
SetLogger(log.New(os.Stderr, "[NGServer] ", log.LstdFlags|log.Lshortfile))
}
var (

@ -0,0 +1,4 @@
package ngs
// VERSION returns current ngs version
const VERSION = "0.1.1"
Loading…
Cancel
Save