1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-03 01:47:35 +00:00

Web server now starts

Can serve static content, no dynamic stuff yet
This commit is contained in:
James Hillyerd
2012-10-20 23:03:59 -07:00
parent 81fea97a90
commit 442e8fbe14
8 changed files with 150 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ import (
"fmt"
"github.com/jhillyerd/inbucket"
"github.com/jhillyerd/inbucket/smtpd"
"log"
"github.com/jhillyerd/inbucket/web"
"os"
)
@@ -32,15 +32,11 @@ func main() {
os.Exit(1)
}
log.Println("Logger test")
inbucket.Trace("trace test")
inbucket.Info("info test")
inbucket.Warn("warn test")
inbucket.Error("error test")
// Startup SMTP server
server := smtpd.New()
server.Start()
go server.Start()
web.Start()
}
func init() {