mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-12-02 18:54:04 +00:00
go fmt
This commit is contained in:
parent
ecf4d071c2
commit
9868f1f7f6
2 changed files with 26 additions and 26 deletions
8
main.go
8
main.go
|
@ -2,12 +2,12 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"log"
|
|
||||||
"net"
|
|
||||||
"os"
|
|
||||||
"github.com/ian-kent/MailHog/mailhog"
|
"github.com/ian-kent/MailHog/mailhog"
|
||||||
"github.com/ian-kent/MailHog/mailhog/http"
|
"github.com/ian-kent/MailHog/mailhog/http"
|
||||||
"github.com/ian-kent/MailHog/mailhog/smtp"
|
"github.com/ian-kent/MailHog/mailhog/smtp"
|
||||||
|
"log"
|
||||||
|
"net"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
var conf *mailhog.Config
|
var conf *mailhog.Config
|
||||||
|
@ -56,7 +56,7 @@ func web_listen() {
|
||||||
http.Start(exitCh, conf)
|
http.Start(exitCh, conf)
|
||||||
}
|
}
|
||||||
|
|
||||||
func smtp_listen() (*net.TCPListener) {
|
func smtp_listen() *net.TCPListener {
|
||||||
log.Printf("[SMTP] Binding to address: %s\n", conf.SMTPBindAddr)
|
log.Printf("[SMTP] Binding to address: %s\n", conf.SMTPBindAddr)
|
||||||
ln, err := net.Listen("tcp", conf.SMTPBindAddr)
|
ln, err := net.Listen("tcp", conf.SMTPBindAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
10
main_test.go
10
main_test.go
|
@ -1,13 +1,13 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"net"
|
|
||||||
"strings"
|
|
||||||
"regexp"
|
|
||||||
"github.com/ian-kent/MailHog/mailhog"
|
"github.com/ian-kent/MailHog/mailhog"
|
||||||
"github.com/ian-kent/MailHog/mailhog/storage"
|
"github.com/ian-kent/MailHog/mailhog/storage"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
"net"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FIXME requires a running instance of MailHog
|
// FIXME requires a running instance of MailHog
|
||||||
|
|
Loading…
Reference in a new issue