mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
15 lines
386 B
Go
15 lines
386 B
Go
// By moving the application's package main logic into
|
|
// a package other than main, it becomes much easier to
|
|
// wrap caddy for custom builds that are go-gettable.
|
|
// https://forum.caddyserver.com/t/my-wish-for-0-9-go-gettable-custom-builds/59?u=matt
|
|
|
|
package main
|
|
|
|
import "github.com/mholt/caddy/caddy/caddymain"
|
|
|
|
var run = caddymain.Run // replaced for tests
|
|
|
|
func main() {
|
|
run()
|
|
}
|