Files
umbrix-libcore/v2/example_server/main.go
2024-05-31 13:08:55 +02:00

19 lines
322 B
Go

package main
import (
"os"
"os/signal"
"syscall"
v2 "github.com/hiddify/hiddify-core/v2"
)
func main() {
// defer C.free(unsafe.Pointer(port))
v2.StartGrpcServer("127.0.0.1:50051", "hello")
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
<-sigChan
}