1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-27 06:27:04 +00:00

Reformat *.go with goimports command

This commit is contained in:
James Hillyerd
2014-05-19 19:40:33 -07:00
parent 63084c67b9
commit 88ae99abb0
20 changed files with 62 additions and 42 deletions

View File

@@ -1,11 +1,12 @@
package web
import (
"net/http"
"strings"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
"github.com/jhillyerd/inbucket/smtpd"
"net/http"
"strings"
)
type Context struct {

View File

@@ -2,12 +2,13 @@ package web
import (
"fmt"
"github.com/jhillyerd/inbucket/log"
"html"
"html/template"
"regexp"
"strings"
"time"
"github.com/jhillyerd/inbucket/log"
)
var TemplateFuncs = template.FuncMap{

View File

@@ -1,9 +1,10 @@
package web
import (
"github.com/stretchr/testify/assert"
"html/template"
"testing"
"github.com/stretchr/testify/assert"
)
func TestTextToHtml(t *testing.T) {

View File

@@ -2,14 +2,15 @@ package web
import (
"fmt"
"github.com/jhillyerd/inbucket/log"
"github.com/jhillyerd/inbucket/smtpd"
"html/template"
"io"
"net/http"
"net/mail"
"strconv"
"time"
"github.com/jhillyerd/inbucket/log"
"github.com/jhillyerd/inbucket/smtpd"
)
type JsonMessageHeader struct {

View File

@@ -4,10 +4,6 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/jhillyerd/go.enmime"
"github.com/jhillyerd/inbucket/config"
"github.com/jhillyerd/inbucket/smtpd"
"github.com/stretchr/testify/mock"
"io"
"log"
"net/http"
@@ -16,6 +12,11 @@ import (
"os"
"testing"
"time"
"github.com/jhillyerd/go.enmime"
"github.com/jhillyerd/inbucket/config"
"github.com/jhillyerd/inbucket/smtpd"
"github.com/stretchr/testify/mock"
)
type OutputJsonHeader struct {

View File

@@ -2,10 +2,11 @@ package web
import (
"fmt"
"github.com/jhillyerd/inbucket/config"
"html/template"
"io/ioutil"
"net/http"
"github.com/jhillyerd/inbucket/config"
)
func RootIndex(w http.ResponseWriter, req *http.Request, ctx *Context) (err error) {

View File

@@ -5,15 +5,16 @@ package web
import (
"fmt"
"net"
"net/http"
"time"
"github.com/goods/httpbuf"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
"github.com/jhillyerd/inbucket/config"
"github.com/jhillyerd/inbucket/log"
"github.com/jhillyerd/inbucket/smtpd"
"net"
"net/http"
"time"
)
type handler func(http.ResponseWriter, *http.Request, *Context) error

View File

@@ -1,13 +1,14 @@
package web
import (
"github.com/jhillyerd/inbucket/log"
"html/template"
"net/http"
"path"
"path/filepath"
"strings"
"sync"
"github.com/jhillyerd/inbucket/log"
)
var cachedMutex sync.Mutex