wss: added a new scheme wss for convenience

This commit is contained in:
nadoo committed 2021-07-09 19:17:16 +08:00
1 parent a62674838e
commit 15f9e74e39
11 files changed
+166 -75

No files matched your search

+4 -1
View File
@@ -8,9 +8,12 @@ import (
// F is the main log function.
var F = func(string, ...interface{}) {}
func init() {
stdlog.SetFlags(stdlog.Flags() | stdlog.Lshortfile)
}
// Debugf prints debug log.
func Debugf(f string, v ...interface{}) {
stdlog.SetFlags(stdlog.LstdFlags | stdlog.Lshortfile)
stdlog.Output(2, fmt.Sprintf(f, v...))
}