mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
main: optimize code
This commit is contained in:
parent
86cb9523d1
commit
ea7c8bcfad
@ -6,15 +6,14 @@ import stdlog "log"
|
|||||||
type Func func(f string, v ...interface{})
|
type Func func(f string, v ...interface{})
|
||||||
|
|
||||||
// F is the main log function
|
// F is the main log function
|
||||||
var F Func = func(f string, v ...interface{}) {
|
var F Func = func(string, ...interface{}) {}
|
||||||
}
|
|
||||||
|
|
||||||
// Fatal log and exit
|
// Fatal log and exit
|
||||||
func Fatal(v ...interface{}) {
|
func Fatal(v ...interface{}) {
|
||||||
stdlog.Fatal(v)
|
stdlog.Fatal(v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fatalf log and exit
|
// Fatalf log and exit
|
||||||
func Fatalf(f string, v ...interface{}) {
|
func Fatalf(f string, v ...interface{}) {
|
||||||
stdlog.Fatalf(f, v)
|
stdlog.Fatalf(f, v...)
|
||||||
}
|
}
|
||||||
|
12
features.go
12
features.go
@ -1,12 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
_ "github.com/nadoo/glider/proxy/http"
|
|
||||||
_ "github.com/nadoo/glider/proxy/mixed"
|
|
||||||
_ "github.com/nadoo/glider/proxy/socks5"
|
|
||||||
_ "github.com/nadoo/glider/proxy/ss"
|
|
||||||
_ "github.com/nadoo/glider/proxy/ssr"
|
|
||||||
_ "github.com/nadoo/glider/proxy/tcptun"
|
|
||||||
_ "github.com/nadoo/glider/proxy/udptun"
|
|
||||||
_ "github.com/nadoo/glider/proxy/uottun"
|
|
||||||
)
|
|
9
main.go
9
main.go
@ -9,6 +9,15 @@ import (
|
|||||||
|
|
||||||
"github.com/nadoo/glider/common/log"
|
"github.com/nadoo/glider/common/log"
|
||||||
"github.com/nadoo/glider/proxy"
|
"github.com/nadoo/glider/proxy"
|
||||||
|
|
||||||
|
_ "github.com/nadoo/glider/proxy/http"
|
||||||
|
_ "github.com/nadoo/glider/proxy/mixed"
|
||||||
|
_ "github.com/nadoo/glider/proxy/socks5"
|
||||||
|
_ "github.com/nadoo/glider/proxy/ss"
|
||||||
|
_ "github.com/nadoo/glider/proxy/ssr"
|
||||||
|
_ "github.com/nadoo/glider/proxy/tcptun"
|
||||||
|
_ "github.com/nadoo/glider/proxy/udptun"
|
||||||
|
_ "github.com/nadoo/glider/proxy/uottun"
|
||||||
)
|
)
|
||||||
|
|
||||||
// VERSION .
|
// VERSION .
|
||||||
|
Loading…
Reference in New Issue
Block a user