~yerinalexey/gobin

43023ba5f375d51ca8fa98386286b2b29cfb1115 — Alexey Yerin 2 years ago aa308ac
refactor: go fmt
1 files changed, 5 insertions(+), 5 deletions(-)

M main.go
M main.go => main.go +5 -5
@@ 24,9 24,9 @@ import (
	"os"
	"strconv"

	"github.com/georgysavva/scany/pgxscan"
	"github.com/gorilla/mux"
	"github.com/jackc/pgx/v4/pgxpool"
	"github.com/georgysavva/scany/pgxscan"
)

type Paste struct {


@@ 35,9 35,9 @@ type Paste struct {
}

type PublicPaste struct {
	Id int
	Id      int
	Summary string
	Link string
	Link    string
}

func main() {


@@ 129,8 129,8 @@ func main() {

	/// Not found page
	r.PathPrefix("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
			w.WriteHeader(404)
			tmpl.ExecuteTemplate(w, "not-found", nil)
		w.WriteHeader(404)
		tmpl.ExecuteTemplate(w, "not-found", nil)
	})

	log.Printf("Staring on port %s\n", port)