mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 04:30:09 +00:00
fix: bugs
This commit is contained in:
17
test_data/core/main.go
Normal file
17
test_data/core/main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/InazumaV/Ratte-Core-Xray"
|
||||
"github.com/InazumaV/Ratte-Interface/core"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c, err := core.NewServer(nil, xray.NewXray())
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
if err = c.Run(); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
||||
17
test_data/panel/main.go
Normal file
17
test_data/panel/main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/InazumaV/Ratte-Interface/panel"
|
||||
v2b "github.com/InazumaV/Ratte-Panel-V2b"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c, err := panel.NewServer(nil, v2b.NewPanel())
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
if err = c.Run(); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user