mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
18 lines
268 B
Go
18 lines
268 B
Go
package caddycmd
|
|
|
|
import (
|
|
"log"
|
|
|
|
"bitbucket.org/lightcodelabs/caddy2"
|
|
)
|
|
|
|
// Main executes the main function of the caddy command.
|
|
func Main() {
|
|
err := caddy2.StartAdmin("127.0.0.1:1234")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
defer caddy2.StopAdmin()
|
|
|
|
select {}
|
|
}
|