fix: 修复typeOfSession编译错误

main
NorthLan 3 years ago
parent bac4f410ad
commit c2975beda7

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

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

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

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