mirror of
https://github.com/hanzoai/core-networkmanagement.git
synced 2026-09-30 20:56:28 +00:00
24 lines
439 B
Go
24 lines
439 B
Go
package main
|
|
|
|
import (
|
|
"core-networkmanager/frontend/plugins"
|
|
_ "core-networkmanager/frontend/plugins/root"
|
|
"log"
|
|
"net/http"
|
|
"strconv"
|
|
|
|
"github.com/labstack/echo"
|
|
)
|
|
|
|
func main() {
|
|
var port = 8080
|
|
mux := echo.New()
|
|
activePlugins := []string{"root"}
|
|
plugins.SetupPlugins(mux, nil, activePlugins)
|
|
err := http.ListenAndServe(":"+strconv.Itoa(port), mux)
|
|
if err != nil {
|
|
log.Fatal("ListenAndServe failed with error: ", err)
|
|
}
|
|
|
|
}
|