mirror of
https://github.com/donl/gPanel.git
synced 2026-05-25 22:06:55 -06:00
18 lines
366 B
Go
18 lines
366 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/Ennovar/gPanel/pkg/gpserver"
|
|
"github.com/gorilla/context"
|
|
)
|
|
|
|
func main() {
|
|
mains := gpserver.New()
|
|
|
|
log.Printf("To Exit: CTRL+C")
|
|
|
|
log.Print("Listening (server) on localhost:2082, serving out of the server/document_root/ directory...")
|
|
http.ListenAndServe("localhost:2082", context.ClearHandler(mains))
|
|
}
|